mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
put_link_line: Add a comment related to bug 213.
This commit is contained in:
parent
de94205969
commit
f8f99cc04e
@ -368,6 +368,14 @@ put_link_line(unsigned char *prefix, unsigned char *linkname,
|
|||||||
format.link = join_urls(html_context->base_href, link);
|
format.link = join_urls(html_context->base_href, link);
|
||||||
format.target = stracpy(target);
|
format.target = stracpy(target);
|
||||||
format.style.fg = format.clink;
|
format.style.fg = format.clink;
|
||||||
|
/* FIXME: linkname typically comes from get_attr_val, which
|
||||||
|
* has already converted it from the document charset to the
|
||||||
|
* terminal charset and expanded character entity references.
|
||||||
|
* The following put_chrs call again converts the characters
|
||||||
|
* and expands entity references. So if we have
|
||||||
|
* <meta http-equiv="refresh" content="3; url=foo?&lt" />
|
||||||
|
* then ELinks will display "foo?<" rather than "foo?<".
|
||||||
|
* This was mentioned in bug 213. */
|
||||||
put_chrs(html_context, linkname, strlen(linkname));
|
put_chrs(html_context, linkname, strlen(linkname));
|
||||||
ln_break(html_context, 1);
|
ln_break(html_context, 1);
|
||||||
pop_html_element(html_context);
|
pop_html_element(html_context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user