Fixed problems with htmlspecialchars() function for not dupported encodings on newer...
[fa-stable.git] / includes / db / connect_db_mysql.inc
index 2f30aef0fa75ec24a3891b70fcb70477231cc553..301d49ddac1f55c796c7ada8f41c80ed59389c05 100644 (file)
@@ -124,7 +124,7 @@ function db_num_fields ($result)
 function db_escape($value = "", $nullify = false)
 {
        $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);