mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Escape quote in field name to make it work in Chrome (thanks to zcepenela pani)
This commit is contained in:
@@ -69,7 +69,7 @@ function remove_slashes($process, $filter = false) {
|
|||||||
*/
|
*/
|
||||||
function bracket_escape($idf, $back = false) {
|
function bracket_escape($idf, $back = false) {
|
||||||
// escape brackets inside name="x[]"
|
// escape brackets inside name="x[]"
|
||||||
static $trans = array(':' => ':1', ']' => ':2', '[' => ':3');
|
static $trans = array(':' => ':1', ']' => ':2', '[' => ':3', '"' => ':4');
|
||||||
return strtr($idf, ($back ? array_flip($trans) : $trans));
|
return strtr($idf, ($back ? array_flip($trans) : $trans));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user