// Fix request_uri when there is no / at the end of the string #PSFV-606

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14146 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-03-14 13:25:34 +00:00
parent 722bdb2658
commit f2734eaf07
+3
View File
@@ -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');