From 81e994d7907f850506ddc248f84761a54995e58c Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Fri, 31 May 2013 17:08:22 -0600 Subject: * Fix not allow remote execution by adding PIPE_NOSHELL to the opening of a url by a browser. --- pico/osdep/terminal.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pico/osdep/terminal.c') diff --git a/pico/osdep/terminal.c b/pico/osdep/terminal.c index 72206c01..eb24d90e 100644 --- a/pico/osdep/terminal.c +++ b/pico/osdep/terminal.c @@ -26,6 +26,7 @@ static char rcsid[] = "$Id: terminal.c 921 2008-01-31 02:09:25Z hubert@u.washing #include "../keydefs.h" #include "../pico.h" #include "../mode.h" +#include "../edef.h" #include "raw.h" #include "color.h" @@ -478,6 +479,12 @@ tinfoopen(void) { int row, col; + if (sendnow){ + term.t_nrow = 23; + term.t_ncol = 80; + return 0; + } + /* * determine the terminal's communication speed and decide * if we need to do optimization ... @@ -1253,6 +1260,12 @@ tcapopen(void) { int row, col; + if (sendnow){ + term.t_nrow = 23; + term.t_ncol = 80; + return 0; + } + /* * determine the terminal's communication speed and decide * if we need to do optimization ... -- cgit v1.2.3-54-g00ecf