mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 00:09:13 +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
0f45aed876
commit
578accd72f
@ -762,6 +762,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