From b928e9ce1cf475ea5139e5846049db63ba53a48b Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 24 Apr 2019 12:12:59 +0100 Subject: 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). --- CHANGELOG.md | 1 + perllib/FixMyStreet/App.pm | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16541c16a..3967b8d92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ - Fix superusers creating anonymous reports. #2435 - Ensure non_public reports aren't exposed at /open311 endpoint. - Escape body name in admin title. + - Use REQUEST_URI, not PATH_INFO, to infer path. - Development improvements: - Make front page cache time configurable. - Better working of /fakemapit/ under https. 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() }, -- cgit v1.2.3