]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/rewrite.php
Wordpress 2.8.5
[autoinstalls/wordpress.git] / wp-includes / rewrite.php
index 3486c4a5b464be5d95bd8f0fc8bcc9084ce7abbc..c04c6a7ea1ab321db1d21d7aa7d165c444c99121 100644 (file)
@@ -299,7 +299,7 @@ function url_to_postid($url) {
                        $query = preg_replace("!^.+\?!", '', $query);
 
                        // Substitute the substring matches into the query.
-                       eval("\$query = \"" . addslashes($query) . "\";");
+                       $query = addslashes(WP_MatchesMapRegex::apply($query, $matches));
                        // Filter out non-public query vars
                        global $wp;
                        parse_str($query, $query_vars);