mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Fixes #1433 - TinyMce Remote image issue.
This commit is contained in:
@@ -298,6 +298,12 @@ TEMPL;
|
|||||||
|
|
||||||
foreach($arr['img'] as $img)
|
foreach($arr['img'] as $img)
|
||||||
{
|
{
|
||||||
|
if(substr($img['src'],0,4) == 'http')
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$regexp = '#(<img[^>]*src="'.str_replace($srch, $repl, $img['src']).'"[^>]*>)#';
|
$regexp = '#(<img[^>]*src="'.str_replace($srch, $repl, $img['src']).'"[^>]*>)#';
|
||||||
|
|
||||||
$width = vartrue($img['width']) ? ' width="'.$img['width'].'"' : '';
|
$width = vartrue($img['width']) ? ' width="'.$img['width'].'"' : '';
|
||||||
@@ -317,6 +323,7 @@ TEMPL;
|
|||||||
}
|
}
|
||||||
|
|
||||||
$qr['ebase'] = true;
|
$qr['ebase'] = true;
|
||||||
|
|
||||||
$src = e107::getParser()->thumbUrl($qr['src'],$qr);
|
$src = e107::getParser()->thumbUrl($qr['src'],$qr);
|
||||||
|
|
||||||
$replacement = '<img src="'.$src.'" '.$srcset.$style.$alt.$title.$class.$width.$height.' />';
|
$replacement = '<img src="'.$src.'" '.$srcset.$style.$alt.$title.$class.$width.$height.' />';
|
||||||
|
Reference in New Issue
Block a user