fix big $_GET[f] URL parameter got removed by Suhosin extension

This commit is contained in:
Ralf Becker 2014-11-08 15:33:06 +00:00
parent da49943ac5
commit bfe3011961

View File

@ -55,6 +55,13 @@ if (isset($_GET['g'])) {
// well need groups config
$min_serveOptions['minApp']['groups'] = (require MINIFY_MIN_DIR . '/groupsConfig.php');
}
// fix big $_GET[f] URL parameter got removed by Suhosin extension
if (!isset($_GET['f']) && preg_match('|&f=[a-z0-9,./_-]+&|i', $_SERVER['QUERY_STRING']))
{
parse_str($_SERVER['QUERY_STRING'], $get);
$_GET['f'] = $get['f'];
unset($get);
}
if (isset($_GET['f']) || isset($_GET['g'])) {
// serve!