]> git.donarmstrong.com Git - debbugs.git/commitdiff
Fix sani function in scripts/errorlib. Generate html entities correctly (prepend...
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>
Sat, 8 Sep 2012 20:34:11 +0000 (22:34 +0200)
committerDon Armstrong <don@donarmstrong.com>
Fri, 28 Sep 2012 17:21:56 +0000 (10:21 -0700)
Signed-off-by: Don Armstrong <don@donarmstrong.com>
debian/changelog
scripts/errorlib

index 3f84594dc648f6843918750811aa8d317fa562b3..a9a63391df23edbdd8c7799c496edc61f77954a1 100644 (file)
@@ -20,6 +20,8 @@ debbugs (2.4.2~exp2) UNRELEASED; urgency=low
   * Assure in apache.conf example that documentation html pages get loaded.
   * Rewrite rule example: http://<webhost>/<nnn> -> show bug report for
     bug <nnn>.
+  * Fix sani function in scripts/errorlib. Generate html entities correctly
+    (prepend ampersand, append semicolon).
 
  -- Don Armstrong <don@debian.org>  Wed, 25 Aug 2010 01:57:38 -0700
 
index a2e90161730a1454cb03134fca9efb458102cec2..0b88d6a70b2d1a48c77a4042ad136fe4d3682ca7 100755 (executable)
@@ -18,7 +18,7 @@ sub unlockreadbugmerge {
 sub sani {
     my ($in) = @_;
     carp "You should be using HTML::Entities instead.";
-    $in =~ s/([<>&"])/$saniarray{$1}/g;
+    $in =~ s/([<>&"])/\&$saniarray{$1};/g;
     return $in;
 }