mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Fixes #1092 - TinyMce breaking external image URLs with params.
This commit is contained in:
parent
872be15668
commit
aa4b56a792
@ -225,8 +225,11 @@ TEMPL;
|
||||
|
||||
parse_str($qry,$qr);
|
||||
|
||||
$qr['w'] = $img['width'];
|
||||
$qr['h'] = $img['height'];
|
||||
if(substr($url,0,4)!=='http' && empty($qr['w']) && empty($qr['aw']))
|
||||
{
|
||||
$qr['w'] = $img['width'];
|
||||
$qr['h'] = $img['height'];
|
||||
}
|
||||
|
||||
$src = $url."?".urldecode(http_build_query($qr));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user