bug 1301: Fix issue with missing default for the encoding bug-1301
authorBenny Baumann <BenBE@geshi.org>
Fri, 29 Aug 2014 22:53:41 +0000 (00:53 +0200)
committerBenny Baumann <BenBE@geshi.org>
Fri, 29 Aug 2014 22:53:41 +0000 (00:53 +0200)
includes/general.php

index 854aab4..26a369e 100644 (file)
 
        function sanitizeHTML($input)
        {
-               return htmlentities(strip_tags($input), ENT_QUOTES);
+               return htmlentities(strip_tags($input), ENT_QUOTES, 'ISO-8859-1');
                //In case of problems, please use the following line again:
                //return htmlentities(strip_tags(utf8_decode($input)), ENT_QUOTES);
                //return htmlspecialchars(strip_tags($input));