Skip to content

Commit

Permalink
Fixes </..//localhost//pig> against <file://lion/>
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Mar 29, 2017
1 parent f16be1c commit ff97d04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/url.h
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,9 @@ inline bool url_parser::url_parse(url_serializer& urls, const CharT* first, cons
urls.save_path_segment();
// Note: This is a (platform - independent) Windows drive letter quirk.
// Both url’s and base’s host are null under these conditions and therefore not copied.
} else {
// set url’s host to base’s host
urls.append_parts(*base, url::HOST, url::HOST);
}
}
state = path_state;
Expand Down

0 comments on commit ff97d04

Please sign in to comment.