Escape quote in field name to make it work in Chrome (thanks to zcepenela pani)

This commit is contained in:
Jakub Vrana 2017-01-23 13:30:05 -08:00
parent 14cb9ca1ef
commit 7099560add

View file

@ -69,7 +69,7 @@ function remove_slashes($process, $filter = false) {
*/
function bracket_escape($idf, $back = false) {
// 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));
}