summaryrefslogtreecommitdiff
path: root/pico/line.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 /pico/line.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 'pico/line.c')
-rw-r--r--pico/line.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/pico/line.c b/pico/line.c
index e5df3670..fe6847d3 100644
--- a/pico/line.c
+++ b/pico/line.c
@@ -608,14 +608,12 @@ int
lisblank(LINE *line)
{
int n = 0;
- UCS qstr[NLINE];
+ char qstr[NLINE];
- n = (glo_quote_str
- && quote_match(glo_quote_str, line, qstr, NLINE))
- ? ucs4_strlen(qstr) : 0;
+ n = quote_match(default_qstr(glo_quote_str, 1), line, qstr, NLINE, 1);
for(; n < llength(line); n++)
- if(!ucs4_isspace(lgetc(line, n).c))
+ if(!ISspace(lgetc(line, n).c))
return(FALSE);
return(TRUE);