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 0f45aed876
commit 578accd72f

View File

@ -762,6 +762,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);
}