We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1759412 commit 945a9dcCopy full SHA for 945a9dc
include/lib/mysql_connect.inc.php
@@ -93,14 +93,8 @@ function my_null_slashes($string) {
93
$addslashes = 'my_add_null_slashes';
94
$stripslashes = 'stripslashes';
95
} else {
96
- if(defined('MYSQLI_ENABLED')){
97
- // mysqli_real_escape_string requires 2 params, breaking wherever
98
- // current $addslashes with 1 param exists. So hack with trim and
99
- // manually run mysqli_real_escape_string requires during sanitization below
100
- $addslashes = 'trim';
101
- }else{
102
- $addslashes = 'mysql_real_escape_string';
103
- }
+ // if get_magic_quotes_gpc is off, we set our own handler
+ $addslashes = 'mysql_real_escape_string';
104
$stripslashes = 'my_null_slashes';
105
}
106
@@ -406,4 +400,4 @@ function at_field_name($result, $i){
406
400
407
401
408
402
////
409
-?>
403
+?>
0 commit comments