mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-19 06:53:53 +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)
|
if ($go===false)
|
||||||
$go = "";
|
$go = "";
|
||||||
|
|
||||||
if (preg_match('#^https?://#',$go)) {
|
if (preg_match('#^(https?:)?//#',$go)) {
|
||||||
$url = $go;
|
$url = $go;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue