From 3cdd4a11ac606f9db1d5e59109c07c73937c67d3 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Wed, 3 Jan 2018 13:24:04 +0100 Subject: [PATCH] Miglioramento percorsi #83 --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.php b/lib/functions.php index 497e4afa7..4f395af39 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -888,7 +888,7 @@ function isMobile() function getURLPath() { $path = $_SERVER['SCRIPT_FILENAME']; - $prefix = $_SERVER['DOCUMENT_ROOT']; + $prefix = rtrim($_SERVER['DOCUMENT_ROOT'], '/\\'); if (substr($path, 0, strlen($prefix)) == $prefix) { $path = substr($path, strlen($prefix));