From 318ebe29a2204a150e02496a1afb535cfe1f6dce Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 8 Nov 2014 15:33:52 +0000 Subject: [PATCH] fix big $_GET[f] URL parameter got removed by Suhosin extension --- phpgwapi/inc/min/index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phpgwapi/inc/min/index.php b/phpgwapi/inc/min/index.php index 17211bd912..6128359fb1 100755 --- a/phpgwapi/inc/min/index.php +++ b/phpgwapi/inc/min/index.php @@ -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!