Escape quote in field name to make it work in Chrome (thanks to zcepenela pani)
This commit is contained in:
parent
14cb9ca1ef
commit
7099560add
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue