From 68e6743b786818779188bab22391b676e857f63e Mon Sep 17 00:00:00 2001 From: carstenklapp Date: Thu, 10 Jan 2002 04:03:12 +0000 Subject: [PATCH] Removed htmlspecialchars to allow urls in error messages (see text2png plugin for an example). git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@1122 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/ErrorManager.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ErrorManager.php b/lib/ErrorManager.php index f45755f8f..d204fea16 100644 --- a/lib/ErrorManager.php +++ b/lib/ErrorManager.php @@ -1,4 +1,4 @@ -errfile); $lines = explode("\n", $this->errstr); - $errstr = htmlspecialchars(array_shift($lines)); + //$errstr = htmlspecialchars(array_shift($lines)); + // Quick hack: by removing htmlspecialchars urls can be used + // in error messages. How will this affect other error + // messages? + $errstr = array_shift($lines); foreach ($lines as $key => $line) $lines[$key] = "
  • " . htmlspecialchars($line) . "
  • "; if ($lines) -- 2.45.0