mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix non-ASCII characters being incorrectly escaped in array keys
This commit is contained in:
parent
9703b1268d
commit
ec685c1606
1 changed files with 2 additions and 2 deletions
|
|
@ -1182,7 +1182,7 @@ class Context
|
|||
{
|
||||
continue;
|
||||
}
|
||||
$key = htmlentities($key);
|
||||
$key = escape($key);
|
||||
$val = $this->_filterRequestVar($key, $val);
|
||||
|
||||
if($requestMethod == 'GET' && isset($_GET[$key]))
|
||||
|
|
@ -1358,7 +1358,7 @@ class Context
|
|||
$result = array();
|
||||
foreach($val as $k => $v)
|
||||
{
|
||||
$k = htmlentities($k);
|
||||
$k = escape($k);
|
||||
if($key === 'page' || $key === 'cpage' || substr_compare($key, 'srl', -3) === 0)
|
||||
{
|
||||
$result[$k] = !preg_match('/^[0-9,]+$/', $v) ? (int) $v : $v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue