From aca719ac741f86cb2ab97ca06bb10b93684e9abf Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 4 Apr 2018 15:01:16 +0200 Subject: do not use punify() in get_baseurl() due to performance issues --- boot.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 7ac4080a4..f6b5bee1c 100755 --- a/boot.php +++ b/boot.php @@ -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; } -- cgit v1.2.3