From 22e055d5e88daf53154b193696abfacb9459f3db Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 24 Mar 2014 11:18:33 +0400 Subject: [PATCH] Encode the value of Mibew root according to RFC 3986 --- src/mibew/libs/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibew/libs/init.php b/src/mibew/libs/init.php index 257b0e1a..c4faa6ae 100644 --- a/src/mibew/libs/init.php +++ b/src/mibew/libs/init.php @@ -27,7 +27,7 @@ require_once(MIBEW_FS_ROOT . '/libs/config.php'); $mibewroot = join( "/", array_map( - "urlencode", + "rawurlencode", preg_split('/\//', preg_replace('/\/+$/', '', preg_replace('/\/{2,}/', '/', '/' . $mibewroot))) ) );