Ticket #693: akismet.php.patch

File akismet.php.patch, 639 bytes (added by delgurth, 5 years ago)

The patch for akismet.php created by Ryan Finnie

Line 
1Index: wp-content/plugins/akismet/akismet.php
2===================================================================
3--- wp-content/plugins/akismet/akismet.php      (revision 19874)
4+++ wp-content/plugins/akismet/akismet.php      (working copy)
5@@ -189,7 +189,7 @@
6        $comment['referrer']   = $_SERVER['HTTP_REFERER'];
7        $comment['blog']       = get_option('home');
8
9-       $ignore = array( 'HTTP_COOKIE' );
10+       $ignore = array( 'HTTP_COOKIE', 'REMOTE_USER', 'AUTH_TYPE',
11'PHP_AUTH_USER', 'PHP_AUTH_PW', 'HTTP_AUTHORIZATION' );
12
13        foreach ( $_SERVER as $key => $value )
14                if ( !in_array( $key, $ignore ) )