diff --git a/ChangeLog b/ChangeLog index a4b6eeb7d6..9029bf80fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -74,6 +74,7 @@ phpMyAdmin - ChangeLog - issue #12321 Assign LIMIT clause only to syntactically correct queries - issue #12461 Can't Execute SQL With Sub-Query Due To "LIMIT 0,25" Inserted At Wrong Place - issue #12511 Clarify documentation on ArbitraryServerRegexp +- issue #12508 Remove duplicate code in SQL escaping 4.6.4 (2016-08-16) - issue [security] Weaknesses with cookie encryption, see PMASA-2016-29 diff --git a/libraries/Util.php b/libraries/Util.php index 47da23b9c9..ae0e978408 100644 --- a/libraries/Util.php +++ b/libraries/Util.php @@ -319,11 +319,7 @@ class Util ); } - if ($php_code) { - $a_string = str_replace('\'', '\\\'', $a_string); - } else { - $a_string = str_replace('\'', '\\\'', $a_string); - } + $a_string = str_replace('\'', '\\\'', $a_string); return $a_string; } // end of the 'sqlAddSlashes()' function