mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSurl::redirect: fix handling absolute URL without protocol
For instance "//localhost/phpldapadmin/")
This commit is contained in:
parent
34d7e10f9a
commit
b13ff9b832
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class LSurl extends LSlog_staticLoggerClass {
|
|||
if ($go===false)
|
||||
$go = "";
|
||||
|
||||
if (preg_match('#^https?://#',$go)) {
|
||||
if (preg_match('#^(https?:)?//#',$go)) {
|
||||
$url = $go;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue