urlmon: canonicalize_path_hierarchical should prepend a '/' if needed.
This commit is contained in:
parent
e1280919b8
commit
bc3f8bb0c7
|
@ -2921,6 +2921,13 @@ static BOOL canonicalize_path_hierarchical(const parse_data *data, Uri *uri,
|
|||
}
|
||||
}
|
||||
|
||||
if(!is_file && *(data->path) && *(data->path) != '/') {
|
||||
/* Prepend a '/' to the path if it doesn't have one. */
|
||||
if(!computeOnly)
|
||||
uri->canon_uri[uri->canon_len] = '/';
|
||||
++uri->canon_len;
|
||||
}
|
||||
|
||||
for(; ptr < data->path+data->path_len; ++ptr) {
|
||||
if(*ptr == '%') {
|
||||
const WCHAR *tmp = ptr;
|
||||
|
|
Loading…
Reference in New Issue