Ticket #20750: 20750.patch
File 20750.patch, 582 bytes (added by , 12 years ago) |
---|
-
wp-includes/link-template.php
1875 1875 $url = preg_replace( '#^.+://[^/]*#', '', $url ); 1876 1876 elseif ( 'http' != $scheme ) 1877 1877 $url = str_replace( 'http://', "$scheme://", $url ); 1878 elseif ( 'http' == $scheme ) 1879 $url = str_replace( 'https://', "$scheme://", $url ); 1878 1880 1879 1881 if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false ) 1880 1882 $url .= '/' . ltrim( $path, '/' );