changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

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

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

U   trunk/htdocs/preview/entry.bml
Modified: trunk/htdocs/preview/entry.bml
===================================================================
--- trunk/htdocs/preview/entry.bml	2009-01-13 10:47:16 UTC (rev 14765)
+++ trunk/htdocs/preview/entry.bml	2009-01-14 04:01:21 UTC (rev 14766)
@@ -184,6 +184,12 @@
         $sec .= "<br />\n" unless $sec eq "" or $req{'subject'};
         $ret .= $sec;
 
+        # prevent BML tags interpretation inside post body
+        $subject =~ s/<\?/<?/g;
+        $subject =~ s/\?>/?>/g;
+        $event =~ s/<\?/<?/g;
+        $event =~ s/\?>/?>/g;
+
         ###
         if ($subject) {
             BML::ebml(\$subject);

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