Ticket #3078: 3078.diff
File 3078.diff, 773 bytes (added by , 19 years ago) |
---|
-
wp-includes/functions.php
606 606 $uri = @func_get_arg(2); 607 607 } 608 608 609 if ( $frag = strstr($uri, '#') ) 610 $uri = substr($uri, 0, -strlen($frag)); 611 else 612 $frag = ''; 613 609 614 if ( preg_match('|^https?://|i', $uri, $matches) ) { 610 615 $protocol = $matches[0]; 611 616 $uri = substr($uri, strlen($protocol)); … … 645 650 $ret .= "$k=$v"; 646 651 } 647 652 } 648 $ret = $protocol . $base . $ret ;653 $ret = $protocol . $base . $ret . $frag; 649 654 if ( get_magic_quotes_gpc() ) 650 655 $ret = stripslashes($ret); // parse_str() adds slashes if magicquotes is on. See: http://php.net/parse_str 651 656 return trim($ret, '?');