From f2f5ec720db30a507da371e5fa5cc4e38fc12676 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 25 Mar 2012 04:11:40 +0100 Subject: [PATCH] debugging --- ext/image/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/image/main.php b/ext/image/main.php index d991a674..a43ffcf7 100644 --- a/ext/image/main.php +++ b/ext/image/main.php @@ -433,7 +433,8 @@ class ImageIO extends Extension { } if(!empty($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)"); } }