From 3bc2ceeee72fbed2bd100d138844efe8da73b10d Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 14 Mar 2012 13:25:34 +0000 Subject: [PATCH] // Fix request_uri when there is no / at the end of the string #PSFV-606 --- config/config.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config.inc.php b/config/config.inc.php index ad9bc4d7c..bf14dc505 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -82,6 +82,9 @@ if (!isset($_SERVER['REQUEST_URI']) || empty($_SERVER['REQUEST_URI'])) } } +if (substr($_SERVER['REQUEST_URI'], -1) != '/') + $_SERVER['REQUEST_URI'] .= '/'; + /* Trying to redefine HTTP_HOST if empty (on some webservers...) */ if (!isset($_SERVER['HTTP_HOST']) || empty($_SERVER['HTTP_HOST'])) $_SERVER['HTTP_HOST'] = @getenv('HTTP_HOST');