aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-04-24 12:12:59 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-04-24 13:33:56 +0100
commitb928e9ce1cf475ea5139e5846049db63ba53a48b (patch)
tree57c1dd1bec18b18d2ca8d766405c85250388a4d8 /perllib
parent0e453a085a6e3249260fea7678a064b165e2bd6f (diff)
Use REQUEST_URI, not PATH_INFO, to infer path.
This fixes an issue with slashes in category names in admin (as PATH_INFO can't tell the difference between / and %2F).
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 2a279c4e2..36f736cd2 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -36,6 +36,11 @@ our $VERSION = '0.01';
__PACKAGE__->config(
+ # Use REQUEST_URI, not PATH_INFO, to infer path. This fixes an issue
+ # with slashes in category names in admin (as PATH_INFO can't tell
+ # the difference between / and %2F)
+ use_request_uri_for_path => 1,
+
# get the config from the core object
%{ FixMyStreet->config() },