From b713a7627227d32a98c15af1cfee49ef337e463d Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 3 Nov 2010 18:40:12 +0000 Subject: [PATCH] Make IP query threshold more restrictive. see #15170 git-svn-id: http://svn.automattic.com/wordpress/trunk@16167 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-ms-sites-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-ms-sites-list-table.php b/wp-admin/includes/class-wp-ms-sites-list-table.php index b4d89427bf..d22e5bf457 100644 --- a/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -47,7 +47,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { if ( empty($s) ) { // Nothing to do. - } elseif ( false !== strpos($s, '.') ) { + } elseif ( preg_match('/^[0-9]+\./', $s) ) { // IP address $query = "SELECT * FROM {$wpdb->blogs}, {$wpdb->registration_log}