Changeset 1615

Show
Ignore:
Timestamp:
09/07/04 00:01:19 (4 years ago)
Author:
rboren
Message:

Apache 1.3 does not support the reluctant (non-greedy) expression modifier. Remove the modifier when outputting mod_rewrite rules.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r1603 r1615  
    13321332 
    13331333        if ($post) { 
    1334             $post_rewrite = array($trackbackmatch => $trackbackquery) + $post_rewrite; 
     1334            $post_rewrite = array($trackbackmatch =top 
     1335> $trackbackquery) + $post_rewrite; 
    13351336        } 
    13361337    } 
     
    14431444    $rewrite = rewrite_rules('', $permalink_structure); 
    14441445    foreach ($rewrite as $match => $query) { 
     1446            // Apache 1.3 does not support the reluctant (non-greedy) modifier. 
     1447            $match = str_replace('.+?', '.+', $match); 
     1448 
    14451449        if (strstr($query, 'index.php')) { 
    14461450            $rules .= 'RewriteRule ^' . $match . ' ' . $home_root . $query . " [QSA]\n";