mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 08:51:50 +02:00
Merge pull request #3282 from SimSync/fix_3275
Fixes #3275 Added support for legacy urls of type request.php?download.4
This commit is contained in:
@@ -3486,6 +3486,16 @@ class e107
|
|||||||
|
|
||||||
if(!empty($tmp))
|
if(!empty($tmp))
|
||||||
{
|
{
|
||||||
|
if (strpos($tmp, '=') === false)
|
||||||
|
{
|
||||||
|
// required for legacy urls of type "request.php?download.43"
|
||||||
|
// @see: issue #3275
|
||||||
|
$legacyUrl .= '?' . $tmp;
|
||||||
|
$options['query'] = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
parse_str($tmp,$qry);
|
parse_str($tmp,$qry);
|
||||||
|
|
||||||
foreach($qry as $k=>$v)
|
foreach($qry as $k=>$v)
|
||||||
@@ -3495,6 +3505,8 @@ class e107
|
|||||||
$options['query'][$k] = $v;
|
$options['query'][$k] = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append the query.
|
// Append the query.
|
||||||
|
Reference in New Issue
Block a user