diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-04-04 15:01:16 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-04 15:01:16 +0200 |
commit | aca719ac741f86cb2ab97ca06bb10b93684e9abf (patch) | |
tree | 575c4e3c6a8dcf401d24ce38a7b24d5e388ad40e /boot.php | |
parent | 8871f8d0f4b33a4ed76ce18c15b7a8fcab916d6e (diff) | |
download | volse-hubzilla-aca719ac741f86cb2ab97ca06bb10b93684e9abf.tar.gz volse-hubzilla-aca719ac741f86cb2ab97ca06bb10b93684e9abf.tar.bz2 volse-hubzilla-aca719ac741f86cb2ab97ca06bb10b93684e9abf.zip |
do not use punify() in get_baseurl() due to performance issues
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |