Make WordPress Core


Ignore:
Timestamp:
08/28/2009 06:07:07 AM (15 years ago)
Author:
westi
Message:

Replace eval usage in request processing with new WP_MatchesMapRegex() class usage. Fixes #9602 for 2.8 branch props hakre.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/rewrite.php

    r11579 r11891  
    300300
    301301            // Substitute the substring matches into the query.
    302             eval("\$query = \"" . addslashes($query) . "\";");
     302            $query = addslashes(WP_MatchesMapRegex::apply($query, $matches));
    303303            // Filter out non-public query vars
    304304            global $wp;
Note: See TracChangeset for help on using the changeset viewer.