Changeset 25149
- Timestamp:
- 08/28/2013 04:53:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r25114 r25149 556 556 $wildcard_regex = array(); 557 557 foreach ( $accessible_hosts as $host ) 558 $wildcard_regex[] = str_replace( '\*', '[\w.]+?', preg_quote($host, '/'));558 $wildcard_regex[] = str_replace( '\*', '.+', preg_quote( $host, '/' ) ); 559 559 $wildcard_regex = '/^(' . implode('|', $wildcard_regex) . ')$/i'; 560 560 } … … 1622 1622 $wildcard_regex = array(); 1623 1623 foreach ( $bypass_hosts as $host ) 1624 $wildcard_regex[] = str_replace( '\*', '[\w.]+?', preg_quote($host, '/'));1624 $wildcard_regex[] = str_replace( '\*', '.+', preg_quote( $host, '/' ) ); 1625 1625 $wildcard_regex = '/^(' . implode('|', $wildcard_regex) . ')$/i'; 1626 1626 }
Note: See TracChangeset
for help on using the changeset viewer.