summaryrefslogtreecommitdiff
path: root/alpine/mailview.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2013-05-29 17:16:32 -0600
committerEduardo Chappa <chappa@washington.edu>2013-05-29 17:16:32 -0600
commit077522d7e058133f9de99d0d74481566b21c5a98 (patch)
tree61095d90e1bc059ff0dbaef5cbf38cabf8a2948b /alpine/mailview.c
parent7d52215d26b6bec1888f546da5d56657cfb16516 (diff)
downloadalpine-077522d7e058133f9de99d0d74481566b21c5a98.tar.xz
* quote of shell characters when opening urls.
* increase of encryption of S/MIME messages.
Diffstat (limited to 'alpine/mailview.c')
-rw-r--r--alpine/mailview.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/alpine/mailview.c b/alpine/mailview.c
index 35f58339..5193118f 100644
--- a/alpine/mailview.c
+++ b/alpine/mailview.c
@@ -1432,7 +1432,7 @@ url_launch(HANDLE_S *handle)
else
#endif
/* quote shell specials */
- if(strpbrk(handle->h.url.path, "&*;<>?[]|~$(){}'\"") != NULL){
+ if(strpbrk(handle->h.url.path, "&*!;<>?[]|~$(){}'\"") != NULL){
escape_single_quotes++;
if((p = strstr(toolp, "_URL_")) != NULL){ /* explicit arg? */
int in_quote = 0;
@@ -1510,7 +1510,8 @@ url_launch(HANDLE_S *handle)
*cmdp++ = '\''; /* closing quote */
*cmdp++ = '\\';
*cmdp++ = '\''; /* opening quote comes from p below */
- }
+ } else if (strchr("&*!;<>?[]|~$(){}\"", *p) != NULL)
+ *cmdp++ = '\\';
*cmdp++ = *p;
}