Fixed problems with htmlspecialchars() function for not dupported encodings on newer...
[fa-stable.git] / includes / db / connect_db_mysqli.inc
index 79e299e4e6ad9dd6e302e1cd0cca5964b6a24e81..8900598a674cf172a182848c253323e09ef28086 100644 (file)
@@ -127,7 +127,7 @@ function db_escape($value = "", $nullify = false)
        global $db;
        
        $value = @html_entity_decode($value, ENT_QUOTES, $_SESSION['language']->encoding);
-       $value = @htmlspecialchars($value, ENT_QUOTES, $_SESSION['language']->encoding);
+       $value = html_specials_encode($value);
 
        //reset default if second parameter is skipped
        $nullify = ($nullify === null) ? (false) : ($nullify);