changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r14760: LJSUP-3593: BML block 'PHP' has no close...

Committer: ssafronova
LJSUP-3593: BML block 'PHP' has no close

U   trunk/htdocs/edittags.bml
Modified: trunk/htdocs/edittags.bml
===================================================================
--- trunk/htdocs/edittags.bml	2009-01-08 15:43:49 UTC (rev 14759)
+++ trunk/htdocs/edittags.bml	2009-01-11 09:04:29 UTC (rev 14760)
@@ -74,6 +74,12 @@
     LJ::CleanHTML::clean_subject(\$subj);
     LJ::CleanHTML::clean_event(\$evt, \%opts);
 
+    # prevent BML tags interpretation inside post body
+    $subj =~ s/<\?/<?/g;
+    $subj =~ s/\?>/?>/g;
+    $evt =~ s/<\?/<?/g;
+    $evt =~ s/\?>/?>/g;
+
     my $logtags = LJ::Tags::get_logtags($u, $jitemid);
     my $usertags = LJ::Tags::get_usertags($u, { remote => $remote }) || {};
     $logtags = $logtags->{$jitemid} || {};

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments