WordPress.org

Make WordPress Core

Changeset 10573


Ignore:
Timestamp:
02/15/2009 11:16:54 AM (11 years ago)
Author:
westi
Message:

Use # as the delimiter for preg_match in rewrite rules to allow them to contain !. Fixes #7486 props jacobsantos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r10150 r10573  
    208208                }
    209209
    210                 if (preg_match("!^$match!", $request_match, $matches) ||
    211                     preg_match("!^$match!", urldecode($request_match), $matches)) {
     210                if (preg_match("#^$match#", $request_match, $matches) ||
     211                    preg_match("#^$match#", urldecode($request_match), $matches)) {
    212212                    // Got a match.
    213213                    $this->matched_rule = $match;
Note: See TracChangeset for help on using the changeset viewer.