LSurl::redirect: fix handling absolute URL without protocol

For instance "//localhost/phpldapadmin/")
This commit is contained in:
Benjamin Renard 2020-08-20 18:11:48 +02:00
parent 34d7e10f9a
commit b13ff9b832

View file

@ -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 {