From 4b5e4723098d5f7cc4c59d8b02304f36c3ab3d9f Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 14 Mar 2019 20:16:35 +0000 Subject: [PATCH] outputhtml : revert the display of HTML errors (if JS is present, the error are needed) git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5106 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- outputhtml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/outputhtml.php b/outputhtml.php index d9c9af3..4c7c5d2 100644 --- a/outputhtml.php +++ b/outputhtml.php @@ -127,7 +127,7 @@ EOT; unset ($errors[$key]); } libxml_clear_errors(); - if (! empty ($errors)) +/* if (! empty ($errors)) { echo "ERROR: Invalid HTML provided\n"; echo "
"; print_r ($errors);
@@ -137,7 +137,7 @@ EOT;
       }
       echo "
"; exit; - } + }*/ foreach (array ("script" => "src", "link" => "href", "img" => "src") as $key=>$val) {