Remove redundant parameter
authorJuliana Rodrigueiro <juliana.rodrigueiro@intra2net.com>
Wed, 19 Sep 2018 15:15:22 +0000 (17:15 +0200)
committerJuliana Rodrigueiro <juliana.rodrigueiro@intra2net.com>
Wed, 19 Sep 2018 15:49:34 +0000 (17:49 +0200)
src/restricted_html.cpp
src/restricted_html.hpp

index d83cdd0..459cd60 100644 (file)
@@ -290,14 +290,11 @@ bool handle_attr_href(string &link)
 * Strip closing tags that were not open and close tags that were not closed.
 *
 * @param html_code_orig input html code. Non case sensitive.
-* @param redirect_prefix Prefix that will be added to the url in case of a valid
-* html "a" tag.
 * @param strip if true disallowed tags are stripped otherwise throw an error.
 * Defaults to true.
 * @return output html code
 */
 const string restrict_html(const string &html_code_orig,
-                           const std::string &redirect_prefix,
                            bool strip)
 {
     string html_code(html_code_orig);
@@ -351,11 +348,6 @@ const string restrict_html(const string &html_code_orig,
     return result.c_str();
 }
 
-const string restrict_html(const string &html_code_orig, bool strip)
-{
-    return restrict_html(html_code_orig, REDIRECT_PREFIX, strip);
-}
-
 /**
  * @brief Replace all "+" characters found in s to spaces (" ").
  *
index fb1277d..83e631c 100644 (file)
@@ -31,10 +31,6 @@ on this file might be covered by the GNU General Public License.
 
 namespace I2n
 {
-
-    const std::string restrict_html(const std::string &html_code_orig,
-                                    const std::string &redirect_prefix,
-                                    bool strip=true);
     const std::string restrict_html(const std::string &html_code_orig,
                                     bool strip=true);