From 16240d54182b48231a69d3a4d4dfa389e28ca19c Mon Sep 17 00:00:00 2001 From: vargenau Date: Mon, 26 Sep 2011 14:15:18 +0000 Subject: [PATCH] More explicit error message git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8125 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/stdlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stdlib.php b/lib/stdlib.php index 5d01eace8..7adf2a6b6 100644 --- a/lib/stdlib.php +++ b/lib/stdlib.php @@ -386,7 +386,7 @@ function IsSafeURL($url) { function LinkURL($url, $linktext = '') { // FIXME: Is this needed (or sufficient?) if(! IsSafeURL($url)) { - $link = HTML::span(array('class' => 'error'), _("BAD URL -- remove all of <, >, \"")); + $link = HTML::span(array('class' => 'error'), _('Bad URL -- remove all of <, >, "')); return $link; } else { @@ -420,7 +420,7 @@ function LinkImage($url, $alt = "") { if (empty($alt)) $alt = ""; if (! IsSafeURL($url)) { - $link = HTML::span(array('class' => 'error'), _("BAD URL -- remove all of <, >, \"")); + $link = HTML::span(array('class' => 'error'), _('Bad URL for image -- remove all of <, >, "')); return $link; } // spaces in inline images must be %20 encoded! -- 2.45.0