vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17653: LJSUP-7290: convert some lines of code t...

Committer: vsukhanov
LJSUP-7290: convert some lines of code to a regular sub.
U   trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm
===================================================================
--- trunk/cgi-bin/LJ/Session.pm	2010-11-10 05:20:54 UTC (rev 17652)
+++ trunk/cgi-bin/LJ/Session.pm	2010-11-10 07:14:06 UTC (rev 17653)
@@ -1016,4 +1016,13 @@
     return 0;
 }
 
+
+sub allow_login_from_iframe {
+    # This P3P header should be set to enable login when login page is in <iframe> tag on the other site
+    my $header_name = 'P3P';
+    my $header_body = 'CP="NON DSP COR CUR ADM DEV PSA PSD OUR UNR BUS UNI COM NAV INT DEM STA"';
+    LJ::Request->set_header_out($header_name, $header_body);
+}
+
+
 1;

Tags: livejournal, pm, vadvs
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