summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-04-12 14:29:51 -0600
committerEduardo Chappa <chappa@washington.edu>2020-04-12 14:29:51 -0600
commit380d6c37f7f1d21d94210a74bff3f9a59ca6423d (patch)
treebb73b5e6fbe97a6b24f5291912d35cd7a96a1526
parent47206e18c8eec0c9c284cb71381ae85ce36b2a3a (diff)
downloadalpine-380d6c37f7f1d21d94210a74bff3f9a59ca6423d.tar.xz
* When an html anchor does not quote the link in the href parameter,
alpine does not link to it.
-rw-r--r--pith/filter.c6
-rw-r--r--pith/pine.hlp5
2 files changed, 10 insertions, 1 deletions
diff --git a/pith/filter.c b/pith/filter.c
index 09e15976..5ac4992f 100644
--- a/pith/filter.c
+++ b/pith/filter.c
@@ -2850,6 +2850,7 @@ typedef struct _center_s {
typedef struct collector_s {
char buf[HTML_BUF_LEN]; /* buffer to collect data */
int len; /* length of that buffer */
+ unsigned unquoted_data:1; /* parameter is not quoted... */
unsigned end_tag:1; /* collecting a closing tag */
unsigned hit_equal:1; /* collecting right half of attrib */
unsigned mkup_decl:1; /* markup declaration */
@@ -7461,9 +7462,14 @@ html_element_collector(FILTER_S *fd, int ch)
return(0); /* need more data */
}
}
+ else if (ASCII_ISSPACE((unsigned char) ch))
+ ED(fd)->unquoted_data = 0;
+ else if (ED(fd)->hit_equal)
+ ED(fd)->unquoted_data = 1;
ch &= 0xff; /* strip any "literal" high bits */
if(ED(fd)->quoted
+ || ED(fd)->unquoted_data
|| isalnum(ch)
|| strchr("#-.!", ch)){
if(ED(fd)->len < ((ED(fd)->element || !ED(fd)->hit_equal)
diff --git a/pith/pine.hlp b/pith/pine.hlp
index b23eabad..01831503 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any
reasonable place to be called from.
Dummy change to get revision in pine.hlp
============= h_revision =================
-Alpine Commit 418 2020-04-11 22:28:50
+Alpine Commit 419 2020-04-12 14:29:36
============= h_news =================
<HTML>
<HEAD>
@@ -229,6 +229,9 @@ Bugs that have been addressed include:
it does not display the url the user needs to open, in order to authorize
Alpine to access Gmail using XOAUTH2 when Alpine still has not created
a screen. Reported by Baron Fujimoto.
+
+<LI> When an html anchor does not quote the link in the href parameter,
+ alpine does not link to it.
</UL>
<P>