mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Normalize all links added by the plain renderer
Fixes problems with host or protocol parts not being lowercased. This triggers an assertion failure when trying to download such links. Reported by lindi-.
This commit is contained in:
parent
1c73b1aa69
commit
ba68992ef2
@ -135,6 +135,10 @@ check_link_word(struct document *document, unsigned char *uri, int length,
|
||||
|
||||
if (!where) return NULL;
|
||||
|
||||
/* We need to reparse the URI and normalize it so that the protocol and
|
||||
* host part are converted to lowercase. */
|
||||
normalize_uri(NULL, where);
|
||||
|
||||
new_link = add_document_link(document, where, length, x, y);
|
||||
|
||||
if (!new_link) mem_free(where);
|
||||
|
Loading…
x
Reference in New Issue
Block a user