]> git.deb.at Git - pkg/blosxom.git/commitdiff
URLs must be escaped inside XML, e.g. inside the <link> container, too.
authorAxel Beckert <xtaran@users.sourceforge.net>
Tue, 22 Jul 2008 01:41:11 +0000 (01:41 +0000)
committerAxel Beckert <xtaran@users.sourceforge.net>
Tue, 22 Jul 2008 01:41:11 +0000 (01:41 +0000)
blosxom.cgi

index fb2a45f6e12084e6d56ad3977d497c72e84eb97b..341d2967c87773a2922f7975c4ddef395afa8bfe 100755 (executable)
@@ -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);