Ticket #4105: 4105.diff
File 4105.diff, 751 bytes (added by , 17 years ago) |
---|
-
wp-includes/functions.php
806 806 } 807 807 808 808 parse_str($query, $qs); 809 if ( get_magic_quotes_gpc() ) 810 $qs = stripslashes_deep($qs); // parse_str() adds slashes if magicquotes is on. See: http://php.net/parse_str 809 811 if ( is_array(func_get_arg(0)) ) { 810 812 $kayvees = func_get_arg(0); 811 813 $qs = array_merge($qs, $kayvees); … … 826 828 } 827 829 $ret = trim($ret, '?'); 828 830 $ret = $protocol . $base . $ret . $frag; 829 if ( get_magic_quotes_gpc() )830 $ret = stripslashes($ret); // parse_str() adds slashes if magicquotes is on. See: http://php.net/parse_str831 831 return $ret; 832 832 } 833 833