From: Mike Gabriel Date: Sat, 8 Sep 2012 20:34:11 +0000 (+0200) Subject: Fix sani function in scripts/errorlib. Generate html entities correctly (prepend... X-Git-Tag: release/2.6.0~348 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=bcbe3a04b20a7c19d70e34723a9aff6f5f4714b7 Fix sani function in scripts/errorlib. Generate html entities correctly (prepend ampersand, append semicolon). Signed-off-by: Don Armstrong --- diff --git a/debian/changelog b/debian/changelog index 3f84594..a9a6339 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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:/// -> show bug report for bug . + * Fix sani function in scripts/errorlib. Generate html entities correctly + (prepend ampersand, append semicolon). -- Don Armstrong Wed, 25 Aug 2010 01:57:38 -0700 diff --git a/scripts/errorlib b/scripts/errorlib index a2e9016..0b88d6a 100755 --- a/scripts/errorlib +++ b/scripts/errorlib @@ -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; }