wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r23177: LJSUP-13824: Site message for unlogged u...

Committer: wisest-owl
LJSUP-13824: Site message for unlogged users must be shown by JS

U   trunk/cgi-bin/LJ/SiteMessages.pm
Modified: trunk/cgi-bin/LJ/SiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/SiteMessages.pm	2012-10-19 14:28:56 UTC (rev 23176)
+++ trunk/cgi-bin/LJ/SiteMessages.pm	2012-10-19 14:54:28 UTC (rev 23177)
@@ -143,7 +143,10 @@
     Anonymous   => {
                         value       => 8192,
                         group       => 0,
-                        validate    => sub { 1 },
+                        validate    => sub {
+                                            my ($u) = @_;
+                                            !$u && (LJ::Request->header_in('Host') eq 'stat.'.$LJ::DOMAIN)
+                                       },
                     },
 };
 

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