Opened 23 months ago
Closed 23 months ago
#18013 closed defect (bug) (fixed)
Site search improvements
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Network Admin | Version: | 3.2 |
| Severity: | normal | Keywords: | |
| 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)
Change History (5)
In this case the IP can be of the forms xxx., xxx.xxx, xxx.xxx., xxx.xxx.xxx, etc.
Note: See
TracTickets for help on using
tickets.

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?