Changeset 4231

Show
Ignore:
Timestamp:
09/25/06 02:12:34 (2 years ago)
Author:
ryan
Message:

Keep the frag at the end. Props mdawaffe. fixes #3078

Files:

Legend:

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

    r4229 r4231  
    20862086    } 
    20872087 
     2088    if ( $frag = strstr($uri, '#') ) 
     2089        $uri = substr($uri, 0, -strlen($frag)); 
     2090    else 
     2091        $frag = ''; 
     2092 
    20882093    if ( preg_match('|^https?://|i', $uri, $matches) ) { 
    20892094        $protocol = $matches[0]; 
     
    21252130        } 
    21262131    } 
    2127     $ret = $protocol . $base . $ret
     2132    $ret = $protocol . $base . $ret . $frag
    21282133    return trim($ret, '?'); 
    21292134}