Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22406: LJSUP-12854: Fix escape for Site object

Committer: anazarov
LJSUP-12854: Fix escape for Site object
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-07-06 12:57:39 UTC (rev 22405)
+++ trunk/cgi-bin/weblib.pl	2012-07-06 13:28:52 UTC (rev 22406)
@@ -1563,6 +1563,10 @@
         my $jsvar_out         = LJ::JSON->to_json(\%LJ::JSVAR);
         my $site_version      = LJ::ejs($LJ::CURRENT_VERSION);
 
+        # LJSUP-12854: Fix escape for Site object
+        $jsml_out  =~ s{(?<=</s)(?=cript)} {"+"}g;
+        $jsvar_out =~ s{(?<=</s)(?=cript)} {"+"}g;
+
         $ret_js .= qq {
             <script type="text/javascript">
                 Site = window.Site || {};

Tags: anazarov, livejournal, nfokz, pl
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