A bit better test.
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Sep 2015 06:31:50 +0000 (08:31 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Sep 2015 06:31:50 +0000 (08:31 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
lib/util.php

index e203dff3ba1a073b65a9dba53681efcbac905f13..2a276bde50e9936ba8bb50609d6e078348a955c5 100644 (file)
@@ -1303,7 +1303,7 @@ function common_is_sensitive($action)
 
 function common_path($relative, $ssl=false, $addSession=true)
 {
-    $pathpart = (common_config('site', 'path')) ? common_config('site', 'path')."/" : '';
+    $pathpart = (!empty(common_config('site', 'path'))) ? common_config('site', 'path') . '/' : '';
 
     if (($ssl && (common_config('site', 'ssl') === 'sometimes'))
         || GNUsocial::isHTTPS()