1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Add slash after host required by URI_HTTP_REFERRER_HOST

This commit is contained in:
witekfl 2006-02-11 19:11:50 +01:00 committed by Jonas Fonseca
parent 734f964714
commit 372d32ccec

View File

@ -550,7 +550,7 @@ add_uri_to_string(struct string *string, struct uri *uri,
}
/* Only add slash if we need to separate */
if ((wants(URI_DATA) || wants(URI_POST))
if ((wants(URI_DATA) || wants(URI_POST) || components == URI_HTTP_REFERRER_HOST)
&& wants(~(URI_DATA | URI_PORT))
&& get_protocol_need_slash_after_host(uri->protocol))
add_char_to_string(string, '/');