From bcbe3a04b20a7c19d70e34723a9aff6f5f4714b7 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 8 Sep 2012 22:34:11 +0200 Subject: [PATCH] Fix sani function in scripts/errorlib. Generate html entities correctly (prepend ampersand, append semicolon). Signed-off-by: Don Armstrong --- debian/changelog | 2 ++ scripts/errorlib | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.2