allow to pass url including http(s) scheme to Html::link($url, ...) and therefore other methods of Html class

This commit is contained in:
Ralf Becker 2021-12-23 10:01:29 +02:00
parent 860028d01a
commit 6bafc579f0

View File

@ -763,6 +763,10 @@ tinymce.init({
parse_str($v,$v);
$vars += $v;
}
if (preg_match('#^https?://#', $url))
{
return $url.($vars ? '?'.http_build_query($vars) : '');
}
return Framework::link($url,$vars);
}