1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-16 12:36:26 +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:
Cameron
2018-07-14 12:52:18 -07:00
committed by GitHub

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.