[dw-free] http://bugs.dwscoalition.org/show_bug.cgi?id=3568
[commit: http://hg.dwscoalition.org/dw-free/rev/3c75a7d7814b]
http://bugs.dwscoalition.org/show_bug.cgi?id=3568
Eat the base tag in several contexts where we meet it.
Patch by
alierak.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3568
Eat the base tag in several contexts where we meet it.
Patch by
Files modified:
- cgi-bin/LJ/CleanHTML.pm
--------------------------------------------------------------------------------
diff -r dec35c4dfb87 -r 3c75a7d7814b cgi-bin/LJ/CleanHTML.pm
--- a/cgi-bin/LJ/CleanHTML.pm Sun Jan 22 23:44:44 2012 +0000
+++ b/cgi-bin/LJ/CleanHTML.pm Mon Jan 23 07:53:50 2012 +0800
@@ -1394,7 +1394,7 @@
return "$LJ::SITEROOT/$uri";
}
-my $subject_eat = [qw[head title style layer iframe applet object param]];
+my $subject_eat = [ qw[ head title style layer iframe applet object xml param base ] ];
my $subject_allow = [qw[a b i u em strong cite]];
my $subject_remove = [qw[bgsound embed object caption link font noscript]];
sub clean_subject
@@ -1414,7 +1414,7 @@
}
## returns a pure text subject (needed in links, email headers, etc...)
-my $subjectall_eat = [qw[head title style layer iframe applet object]];
+my $subjectall_eat = $subject_eat;
sub clean_subject_all
{
my $ref = shift;
@@ -1451,7 +1451,7 @@
);
my @comment_all = ( @comment_close, qw( img br hr p col ) );
-my $event_eat = [ qw[ head title style layer iframe applet object xml param ] ];
+my $event_eat = $subject_eat;
my $event_remove = [ qw[ bgsound embed object link body meta noscript plaintext noframes ] ];
my @event_close = ( @comment_close, qw( marquee blink ) );
--------------------------------------------------------------------------------
