summaryrefslogtreecommitdiff
path: root/pith/init.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2013-05-31 17:08:22 -0600
committerEduardo Chappa <chappa@washington.edu>2013-05-31 17:08:22 -0600
commit81e994d7907f850506ddc248f84761a54995e58c (patch)
tree3bc4993b48ddeec45dee51323437200ab975887c /pith/init.c
parent077522d7e058133f9de99d0d74481566b21c5a98 (diff)
downloadalpine-81e994d7907f850506ddc248f84761a54995e58c.tar.xz
* Fix not allow remote execution by adding PIPE_NOSHELL to the opening of a url by
a browser.
Diffstat (limited to 'pith/init.c')
-rw-r--r--pith/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pith/init.c b/pith/init.c
index d7942dcb..69379bf8 100644
--- a/pith/init.c
+++ b/pith/init.c
@@ -408,6 +408,9 @@ get_mail_list(CONTEXT_S *list_cntxt, char *folder_base)
&& stricmp(filename, folder_base)){
#else
if(strncmp(filename, folder_base, folder_base_len) == 0
+#ifndef _WINDOWS
+ && filename[folder_base_len] != list_cntxt->dir->delim
+#endif
&& strcmp(filename, folder_base)){
#endif
#endif