更新 function_editor.php
This commit is contained in:
parent
4a02db0daf
commit
ffa03cf172
|
@ -202,7 +202,7 @@ function imgtag($attributes) {
|
|||
}
|
||||
}
|
||||
@extract($value);
|
||||
if(!preg_match("/^http:\/\//i", $src)) {
|
||||
if(!preg_match("/^(http|https):\/\//i", $src)) {
|
||||
$src = absoluteurl($src);
|
||||
}
|
||||
return $src ? ($width && $height ? '[img='.$width.','.$height.']'.$src.'[/img]' : '[img]'.$src.'[/img]') : '';
|
||||
|
|
Loading…
Reference in New Issue