aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-04 15:01:16 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-04 15:01:16 +0200
commitaca719ac741f86cb2ab97ca06bb10b93684e9abf (patch)
tree575c4e3c6a8dcf401d24ce38a7b24d5e388ad40e
parent8871f8d0f4b33a4ed76ce18c15b7a8fcab916d6e (diff)
downloadvolse-hubzilla-aca719ac741f86cb2ab97ca06bb10b93684e9abf.tar.gz
volse-hubzilla-aca719ac741f86cb2ab97ca06bb10b93684e9abf.tar.bz2
volse-hubzilla-aca719ac741f86cb2ab97ca06bb10b93684e9abf.zip
do not use punify() in get_baseurl() due to performance issues
-rwxr-xr-xboot.php5
1 files changed, 4 insertions, 1 deletions
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;
}