mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-19 06:53:53 +01:00
Fix LSurl :: get_rewrite_base() method
This commit is contained in:
parent
f0f2ce48ad
commit
c36b385e0f
1 changed files with 4 additions and 4 deletions
|
@ -314,10 +314,10 @@ class LSurl extends LSlog_staticLoggerClass {
|
||||||
**/
|
**/
|
||||||
private static function get_rewrite_base() {
|
private static function get_rewrite_base() {
|
||||||
$public_root_url = LSconfig :: get('public_root_url', '/', 'string');
|
$public_root_url = LSconfig :: get('public_root_url', '/', 'string');
|
||||||
if (preg_match('|^https?://[^/]+/(.*)$|', $public_root_url, $m))
|
if (preg_match('|^https?://[^/]+(/.*)$|', $public_root_url, $m))
|
||||||
return '/'.self :: remove_trailing_slash($m[1]).'/';
|
return self :: remove_trailing_slash($m[1]).'/';
|
||||||
elseif (preg_match('|^/(.+)$|', $public_root_url, $m))
|
elseif (preg_match('|^(/.+)$|', $public_root_url, $m))
|
||||||
return '/'.self :: remove_trailing_slash($m[1]).'/';
|
return self :: remove_trailing_slash($m[1]).'/';
|
||||||
return '/';
|
return '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue