Fixed it so the mod_rewrite regex no longer matches EVERY URI.

git-svn-id: https://develop.svn.wordpress.org/trunk@573 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-12-05 20:14:07 +00:00
parent 74e328860e
commit 3ccfa661ea
1 changed files with 3 additions and 1 deletions

View File

@ -122,8 +122,10 @@ $queryreplace = array (
$match = str_replace('/', '/?', $permalink_structure);
$match = str_replace($rewritecode, $rewritereplace, $match);
$match = preg_replace('|/[?]|', '', $match, 1);
$match = str_replace($rewritecode, $rewritereplace, $match);
$match = preg_replace('|[?]|', '', $match, 1);
preg_match_all('/%.+?%/', $permalink_structure, $tokens);
$query = 'index.php?';