mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 02:40:25 +02:00
Fixes #3275 Added support for legacy urls of type request.php?download.4
This commit is contained in:
@@ -3486,14 +3486,26 @@ class e107
|
|||||||
|
|
||||||
if(!empty($tmp))
|
if(!empty($tmp))
|
||||||
{
|
{
|
||||||
parse_str($tmp,$qry);
|
if (strpos($tmp, '=') === false)
|
||||||
|
|
||||||
foreach($qry as $k=>$v)
|
|
||||||
{
|
{
|
||||||
if(!isset($options['query'][$k])) // $options['query'] overrides any in the original URL.
|
// required for legacy urls of type "request.php?download.43"
|
||||||
|
// @see: issue #3275
|
||||||
|
$legacyUrl .= '?' . $tmp;
|
||||||
|
$options['query'] = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
parse_str($tmp,$qry);
|
||||||
|
|
||||||
|
foreach($qry as $k=>$v)
|
||||||
{
|
{
|
||||||
$options['query'][$k] = $v;
|
if(!isset($options['query'][$k])) // $options['query'] overrides any in the original URL.
|
||||||
|
{
|
||||||
|
$options['query'][$k] = $v;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user