debugging
This commit is contained in:
parent
b628bcfa86
commit
f2f5ec720d
@ -433,7 +433,8 @@ class ImageIO extends Extension {
|
|||||||
}
|
}
|
||||||
if(!empty($image->source)) {
|
if(!empty($image->source)) {
|
||||||
if(!preg_match("#^(https?|ftp)://#", $image->source)) {
|
if(!preg_match("#^(https?|ftp)://#", $image->source)) {
|
||||||
throw new ImageReplaceException("Image's source isn't a valid URL");
|
$h_url = html_escape($image->source);
|
||||||
|
throw new ImageReplaceException("Image's source isn't a valid URL ($h_url)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user