summaryrefslogtreecommitdiffstats
path: root/inc/render.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/render.inc.php')
-rw-r--r--inc/render.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/render.inc.php b/inc/render.inc.php
index f8f9e56b..34e064bc 100644
--- a/inc/render.inc.php
+++ b/inc/render.inc.php
@@ -230,6 +230,11 @@ class Render
$params['password_type'] = Property::getPasswordFieldType();
// Branding
$params['product_name'] = defined('CONFIG_PRODUCT_NAME') ? CONFIG_PRODUCT_NAME : 'OpenSLX';
+ // Query string
+ if (strpos($_SERVER['QUERY_STRING'], 'message[]=') !== false) {
+ $_SERVER['QUERY_STRING'] = preg_replace('/message\[\]=[^&]+(&|$)/', '', $_SERVER['QUERY_STRING']);
+ }
+ $params['qstr_urlencode'] = rawurlencode('?' . $_SERVER['QUERY_STRING']);
// Return rendered html
return self::$mustache->render($html, $params);
}