Fix usage of preg_replace

This commit is contained in:
Olivier PEREZ 2015-03-05 13:22:55 +01:00
parent c25df81b1e
commit 778a03f802

View File

@ -30,7 +30,7 @@ class Utils {
$dirname = str_replace('/admin', '', $dirname);
$server_name = $_SERVER['SERVER_NAME'] . $port . $dirname;
return $scheme . '://' . preg_replace('//+', '/', $server_name);
return $scheme . '://' . preg_replace('#//+#', '/', $server_name);
}
public static function is_error($cerr) {