mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Fixes #1433 - TinyMce Remote image issue.
This commit is contained in:
parent
a3a87325ad
commit
e15469e806
@ -298,6 +298,12 @@ TEMPL;
|
||||
|
||||
foreach($arr['img'] as $img)
|
||||
{
|
||||
if(substr($img['src'],0,4) == 'http')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$regexp = '#(<img[^>]*src="'.str_replace($srch, $repl, $img['src']).'"[^>]*>)#';
|
||||
|
||||
$width = vartrue($img['width']) ? ' width="'.$img['width'].'"' : '';
|
||||
@ -316,7 +322,8 @@ TEMPL;
|
||||
$qr['h'] = $img['height'];
|
||||
}
|
||||
|
||||
$qr['ebase'] = true;
|
||||
$qr['ebase'] = true;
|
||||
|
||||
$src = e107::getParser()->thumbUrl($qr['src'],$qr);
|
||||
|
||||
$replacement = '<img src="'.$src.'" '.$srcset.$style.$alt.$title.$class.$width.$height.' />';
|
||||
|
Loading…
x
Reference in New Issue
Block a user