Remove REFERER WARNING errors, they're pretty useless to us.

        Patch by mark. 

diffs (17 lines):

diff -r 778ac5179253 -r a6bc338ff907 cgi-bin/Apache/LiveJournal.pm
--- a/cgi-bin/Apache/LiveJournal.pm     Tue Apr 20 09:56:11 2010 -0700
+++ b/cgi-bin/Apache/LiveJournal.pm     Wed Apr 21 08:07:33 2010 +0000
@@ -443,13 +443,6 @@ sub trans
             $r->notes->{use_minimal_scheme} = 1;
             $r->notes->{bml_use_scheme} = $LJ::MINIMAL_BML_SCHEME;
         }
-    }
-
-    # now we know that the request is going to succeed, so do some checking if 
they have a defined
-    # referer.  clients and such don't, so ignore them.
-    my $referer = $r->headers_in->{"Referer"};
-    if ($referer && $r->method eq 'POST' && !LJ::check_referer('', $referer)) {
-       $r->log_error("REFERER WARNING: POST to $uri from $referer");
     }
 
     my %GET = LJ::parse_args( $r->args );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to