From: Axel Beckert Date: Tue, 22 Jul 2008 01:41:11 +0000 (+0000) Subject: URLs must be escaped inside XML, e.g. inside the container, too. X-Git-Tag: debian/2.1.2-2~40 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=3de8259e6bfdb18b5fc581c8f327f6cf0f3bf19d;p=pkg%2Fblosxom.git URLs must be escaped inside XML, e.g. inside the container, too. --- diff --git a/blosxom.cgi b/blosxom.cgi index fb2a45f..341d296 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -673,6 +673,9 @@ sub generate { my $escape_re = join '|' => keys %escape; $title =~ s/($escape_re)/$escape{$1}/g; $body =~ s/($escape_re)/$escape{$1}/g; + $url =~ s/($escape_re)/$escape{$1}/g; + $path =~ s/($escape_re)/$escape{$1}/g; + $fn =~ s/($escape_re)/$escape{$1}/g; } $story = &$interpolate($story);