]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/htmltidy.pm
data:image/svg is a security hole as javascript can presumably be inserted
[git.ikiwiki.info.git] / IkiWiki / Plugin / htmltidy.pm
index fc0d3b1d68067593851f3da8203ccdfcd87e344e..e6d377f8ab96a853f0bfcbc51ab2d09126e6d14e 100644 (file)
@@ -47,8 +47,7 @@ sub sanitize (@) {
 
        $SIG{PIPE}="DEFAULT";
        if ($sigpipe || ! defined $ret) {
 
        $SIG{PIPE}="DEFAULT";
        if ($sigpipe || ! defined $ret) {
-               print STDERR gettext("warning: tidy failed")."\n";
-               return "";
+               return gettext("htmltidy failed to parse this html");
        }
 
        return $ret;
        }
 
        return $ret;