Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#18013 closed defect (bug) (fixed)

Site search improvements

Reported by: ryan's profile ryan Owned by: ryan's profile ryan
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.2
Component: Network Admin Keywords:
Focuses: multisite Cc:

Description

Search for wp-admin/network/sites.php treats 2011.foo as an IP address. The IPv4 address regex should be more specific.

Searching for numeric domains/paths is not possible since they are treated as a blog ID. A simple way around this is to not do a blog ID search if a wildcard is present. 2011 = blog id and 2011* = domain/path.

Attachments (1)

18013.diff (1.2 KB) - added by ryan 13 years ago.

Download all attachments as: .zip

Change History (5)

@ryan
13 years ago

#1 @agalindo
13 years ago

The filter extension is enabled by default from PHP 5.2.0, the new WordPress 3.2 release states that 5.2.4 is now a requirement - why not use filter_var to validate the IP? Or is there a known issue with it?

#2 @ryan
13 years ago

In this case the IP can be of the forms xxx., xxx.xxx, xxx.xxx., xxx.xxx.xxx, etc.

#3 @ryan
13 years ago

  • Milestone changed from Future Release to 3.3

#4 @ryan
13 years ago

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

In [18442]:

Sites search improvements. fixes #18013

Note: See TracTickets for help on using tickets.