Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#22979 closed enhancement (fixed)

Check for empty user agent

Reported by: sergejmueller's profile sergej.mueller Owned by: ryan's profile ryan
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.5
Component: Comments Keywords: has-patch
Focuses: Cc:

Description

For crazy spam bots without a user agent.

PHP Notice: Undefined index: HTTP_USER_AGENT in /var/www/wp/wp-includes/comment.php on line 1391

Attachments (2)

wp-includes.patch (756 bytes) - added by sergej.mueller 12 years ago.
ticket patch
22979.diff (792 bytes) - added by MikeHansenMe 11 years ago.
Updated relative to root

Download all attachments as: .zip

Change History (4)

@sergej.mueller
12 years ago

ticket patch

#1 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to 3.6
  • Type changed from feature request to enhancement
  • Version changed from trunk to 3.5

@MikeHansenMe
11 years ago

Updated relative to root

#2 @ryan
11 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In 24275:

Check for empty user agent to avoid notice.

Props sergej.mueller
fixes #22979

Note: See TracTickets for help on using tickets.