summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-07 10:34:20 +0200
committerErich Eckner <git@eckner.net>2019-08-07 10:34:20 +0200
commit46abc613e2ff04f8953e2b94abac5b97d03d0f71 (patch)
treee84ddf709448460d9fa3aae3600a83f34094536a
parent87dadcf429a8d2367608f422de8accdd4103ba48 (diff)
downloadarchweb32-46abc613e2ff04f8953e2b94abac5b97d03d0f71.tar.xz
init.php: urldecode() QUERY_STRING and REQUEST_URI before cleaning
-rw-r--r--init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.php b/init.php
index 3ea1c4d..ee01831 100644
--- a/init.php
+++ b/init.php
@@ -6,7 +6,7 @@ $_SERVER['QUERY_STRING'] =
htmlspecialchars(
preg_replace(
'/%.?.?/', '',
- $_SERVER['QUERY_STRING']
+ urldecode($_SERVER['QUERY_STRING'])
)
)
);
@@ -16,7 +16,7 @@ $_SERVER['REQUEST_URI'] =
htmlspecialchars(
preg_replace(
'/%.?.?/', '',
- $_SERVER['REQUEST_URI']
+ urldecode($_SERVER['REQUEST_URI'])
)
)
);