mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-11 15:59:45 +01:00
allow to pass url including http(s) scheme to Html::link($url, ...) and therefore other methods of Html class
This commit is contained in:
parent
860028d01a
commit
6bafc579f0
@ -763,6 +763,10 @@ tinymce.init({
|
|||||||
parse_str($v,$v);
|
parse_str($v,$v);
|
||||||
$vars += $v;
|
$vars += $v;
|
||||||
}
|
}
|
||||||
|
if (preg_match('#^https?://#', $url))
|
||||||
|
{
|
||||||
|
return $url.($vars ? '?'.http_build_query($vars) : '');
|
||||||
|
}
|
||||||
return Framework::link($url,$vars);
|
return Framework::link($url,$vars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user