Committer: vsukhanov
LJSUP-7290: convert some lines of code to a regular sub.U trunk/cgi-bin/LJ/Hooks/SUP.pm
Modified: trunk/cgi-bin/LJ/Hooks/SUP.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/SUP.pm 2010-11-10 05:36:56 UTC (rev 9684) +++ trunk/cgi-bin/LJ/Hooks/SUP.pm 2010-11-10 07:16:07 UTC (rev 9685) @@ -386,10 +386,8 @@ return unless $LJ::OPENID_DEST_DOMAIN_TRUSTED{ $host }; # This P3P header should be set to enable login when login page is in <iframe> tag on the other site - eval{ - 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); + eval { + LJ::Session->allow_login_from_iframe(); }; });