summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-06-29 00:54:43 -0600
committerEduardo Chappa <chappa@washington.edu>2020-06-29 00:54:43 -0600
commitac3618ca9d4d5136b8e231c6de23b2da6add204f (patch)
treeabff74df00e5b240a0146b2bbc3ce4cc69b173c9
parent8e8c163e1b31fa49fc8d3a85497f1fc92d324383 (diff)
downloadalpine-ac3618ca9d4d5136b8e231c6de23b2da6add204f.tar.xz
* URLs that are surrounded by white space are not cleaned by Alpine before
passing them to the browser, resulting in no display of the URL when Alpine tries to open it. Reported by Gregory Heytings.
-rw-r--r--pith/filter.c2
-rw-r--r--pith/pine.hlp6
2 files changed, 7 insertions, 1 deletions
diff --git a/pith/filter.c b/pith/filter.c
index 0c2f525..8e7c92e 100644
--- a/pith/filter.c
+++ b/pith/filter.c
@@ -5028,6 +5028,8 @@ html_a(HANDLER_S *hd, int ch, int cmd)
* we were giving some "base" string, proceed ala RFC1808...
*/
if(href){
+ if(href->value)
+ removing_leading_and_trailing_white_space(href->value);
if(HTML_BASE(hd->html_data) && !rfc1738_scan(href->value, &n)){
html_a_relative(HTML_BASE(hd->html_data), href->value, h);
}
diff --git a/pith/pine.hlp b/pith/pine.hlp
index a005fc6..92f2d9a 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 469 2020-06-28 23:10:19
+Alpine Commit 470 2020-06-29 00:41:56
============= h_news =================
<HTML>
<HEAD>
@@ -233,6 +233,10 @@ Bugs addressed:
<LI> When an attachment is deleted and the original message is saved, Alpine
might write only a part of the name of the file deleted. Reported by Holger
Trapp.
+
+<LI> URLs that are surrounded by white space are not cleaned by Alpine before
+ passing them to the browser, resulting in no display of the URL when Alpine
+ tries to open it. Reported by Gregory Heytings.
</UL>
<P>