1
0
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:
Achim Ennenbach
2018-07-13 23:38:17 +02:00
parent 26d72ff21e
commit 566e85f078

View File

@@ -3486,6 +3486,16 @@ class e107
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);
foreach($qry as $k=>$v)
@@ -3495,6 +3505,8 @@ class e107
$options['query'][$k] = $v;
}
}
}
}
// Append the query.