Encode the value of Mibew root according to RFC 3986

This commit is contained in:
Fedor A. Fetisov 2014-03-24 11:18:33 +04:00
parent bbb5072130
commit 22e055d5e8

View File

@ -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)))
)
);