WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#18013 closed defect (bug) (fixed)

Site search improvements

Reported by: ryan Owned by: 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 3 years ago.

Download all attachments as: .zip

Change History (5)

ryan3 years ago

comment:1 agalindo3 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?

comment:2 ryan3 years ago

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

comment:3 ryan3 years ago

  • Milestone changed from Future Release to 3.3

comment:4 ryan3 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.