vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r18214: LJSUP-7868: skip setting ljuniq cookie f...

Committer: vsukhanov
LJSUP-7868: skip setting ljuniq cookie for /robots.txt uri
U   trunk/cgi-bin/LJ/UniqCookie.pm
Modified: trunk/cgi-bin/LJ/UniqCookie.pm
===================================================================
--- trunk/cgi-bin/LJ/UniqCookie.pm	2011-02-04 08:10:59 UTC (rev 18213)
+++ trunk/cgi-bin/LJ/UniqCookie.pm	2011-02-04 08:56:23 UTC (rev 18214)
@@ -393,6 +393,7 @@
     my $domain = LJ::Request->header_in("Host");
     my ($subdomain) = $domain =~ m|^(.+?)\.\Q$LJ::DOMAIN\E|;
     return if $subdomain and $LJ::COOKIE_FREE_DOMAINS{$subdomain};
+    return if LJ::Request->uri() =~ m|^/robots.txt|;
 
     my ($uniq, $uniq_time, $uniq_extra) = $class->parts_from_cookie;
 

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