Changeset 6614

Show
Ignore:
Timestamp:
01/14/08 21:44:08 (1 year ago)
Author:
ryan
Message:

Don't double requested url in url_to_postid(). Props filosofo. fixes #5661

Files:

Legend:

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

    r6592 r6614  
    128128        // If the requesting file is the anchor of the match, prepend it 
    129129        // to the path info. 
    130         if ( (! empty($url)) && (strpos($match, $url) === 0) ) { 
     130        if ( (! empty($url)) && (strpos($match, $url) === 0) && ($url != $request)) { 
    131131            $request_match = $url . '/' . $request; 
    132132        }