Ticket #11513: injection_removal.diff
File injection_removal.diff, 787 bytes (added by , 15 years ago) |
---|
-
wp-content/plugins/akismet/akismet.php
412 412 return 'spam'; 413 413 } 414 414 415 function akismet_auto_check_comment( $comment ) {415 function akismet_auto_check_comment( $commentdata ) { 416 416 global $akismet_api_host, $akismet_api_port; 417 417 418 $comment = $commentdata; 418 419 $comment['user_ip'] = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] ); 419 420 $comment['user_agent'] = $_SERVER['HTTP_USER_AGENT']; 420 421 $comment['referrer'] = $_SERVER['HTTP_REFERER']; … … 453 454 } 454 455 } 455 456 akismet_delete_old(); 456 return $comment ;457 return $commentdata; 457 458 } 458 459 459 460 function akismet_delete_old() {