mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
URL assembler (url)encoding issues
This commit is contained in:
@@ -2062,7 +2062,7 @@ class eRouter
|
|||||||
$ampersand = !$encode && $options['amp'] == '&' ? '&' : $options['amp'];
|
$ampersand = !$encode && $options['amp'] == '&' ? '&' : $options['amp'];
|
||||||
foreach ($params as $k => $v)
|
foreach ($params as $k => $v)
|
||||||
{
|
{
|
||||||
if (null !== $key) $k = $key.'['.$k.']';
|
if (null !== $key) $k = $key.'['.rawurlencode($k).']';
|
||||||
|
|
||||||
if (is_array($v)) $pairs[] = $this->createPathInfo($v, $options, $k);
|
if (is_array($v)) $pairs[] = $this->createPathInfo($v, $options, $k);
|
||||||
else
|
else
|
||||||
@@ -2071,14 +2071,14 @@ class eRouter
|
|||||||
{
|
{
|
||||||
if($encode)
|
if($encode)
|
||||||
{
|
{
|
||||||
$k = rawurlencode($k);
|
$k = null !== $key ? $k : rawurlencode($k);
|
||||||
}
|
}
|
||||||
$pairs[] = $k;
|
$pairs[] = $k;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if($encode)
|
if($encode)
|
||||||
{
|
{
|
||||||
$k = rawurlencode($k);
|
$k = null !== $key ? $k : rawurlencode($k);
|
||||||
$v = rawurlencode($v);
|
$v = rawurlencode($v);
|
||||||
}
|
}
|
||||||
$pairs[] = $k.$equal.$v;
|
$pairs[] = $k.$equal.$v;
|
||||||
@@ -2459,7 +2459,8 @@ class eUrlRule
|
|||||||
|
|
||||||
foreach ($this->params as $key => $value)
|
foreach ($this->params as $key => $value)
|
||||||
{
|
{
|
||||||
$tr["<$key>"] = $params[$key];
|
// FIX - non-latin URLs proper encoded
|
||||||
|
$tr["<$key>"] = rawurlencode($params[$key]);
|
||||||
unset($params[$key]);
|
unset($params[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user