File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
system/database/drivers/mysqli Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class CI_DB_mysqli_driver extends CI_DB {
56
56
57
57
// whether SET NAMES must be used to set the character set
58
58
var $ use_set_names ;
59
-
59
+
60
60
// --------------------------------------------------------------------
61
61
62
62
/**
@@ -311,18 +311,8 @@ function escape_str($str, $like = FALSE)
311
311
return $ str ;
312
312
}
313
313
314
- if (function_exists ('mysqli_real_escape_string ' ) AND is_object ($ this ->conn_id ))
315
- {
316
- $ str = mysqli_real_escape_string ($ this ->conn_id , $ str );
317
- }
318
- elseif (function_exists ('mysql_escape_string ' ))
319
- {
320
- $ str = mysql_escape_string ($ str );
321
- }
322
- else
323
- {
324
- $ str = addslashes ($ str );
325
- }
314
+
315
+ $ str = mysqli_real_escape_string ($ this ->conn_id , $ str );
326
316
327
317
// escape LIKE condition wildcards
328
318
if ($ like === TRUE )
You can’t perform that action at this time.
0 commit comments