do not use punify() in get_baseurl() due to performance issues

This commit is contained in:
Mario Vavti 2018-04-04 15:01:16 +02:00
parent 8871f8d0f4
commit aca719ac74

View File

@ -954,7 +954,10 @@ class App {
&& is_array(self::$config['system'])
&& array_key_exists('baseurl',self::$config['system'])
&& strlen(self::$config['system']['baseurl'])) {
$url = punify(self::$config['system']['baseurl']);
// get_baseurl() is a heavily used function.
// Do not use punify() here until we find a library that performs better than what we have now.
//$url = punify(self::$config['system']['baseurl']);
$url = self::$config['system']['baseurl'];
$url = trim($url,'\\/');
return $url;
}