更新 function_editor.php

This commit is contained in:
Kuan-Yu Chen 2017-03-06 01:10:38 +08:00
parent 4a02db0daf
commit ffa03cf172
1 changed files with 1 additions and 1 deletions

View File

@ -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]') : '';