mirror of
https://github.com/Mibew/i18n.git
synced 2025-02-08 20:01:07 +03:00
Sanitize path to application and remove extra slashes from it
This commit is contained in:
parent
92847d1a52
commit
b42f5bdd0d
@ -20,6 +20,10 @@ session_start();
|
|||||||
require_once(dirname(__FILE__) . '/converter.php');
|
require_once(dirname(__FILE__) . '/converter.php');
|
||||||
require_once(dirname(__FILE__) . '/config.php');
|
require_once(dirname(__FILE__) . '/config.php');
|
||||||
|
|
||||||
|
// Sanitize path to application and remove extra slashes
|
||||||
|
$webimroot = join("/", array_map("urlencode", preg_split('/\//', preg_replace('/\/+$/', '', preg_replace('/\/{2,}/', '/', '/' . $webimroot)))));
|
||||||
|
|
||||||
|
|
||||||
$version = '1.6.5';
|
$version = '1.6.5';
|
||||||
$jsver = "165";
|
$jsver = "165";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user