aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2005-10-30 22:00:43 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2005-10-30 22:00:43 -0500
commitc64d302821eb22d2c3d1269715a0892ddb2bb342 (patch)
tree4433aec5c6a84be601c15141bc7c3d0d7dbb8d2d
parent1876fe93dd4a772ba8a6894f0ba0780b0171a5f2 (diff)
downloadlynx-snapshots-c64d302821eb22d2c3d1269715a0892ddb2bb342.tar.gz
snapshot of project "lynx", label v2-8-6dev_15
-rw-r--r--CHANGES13
-rwxr-xr-xconfigure2
-rw-r--r--configure.in4
-rw-r--r--lynx.cfg4
-rw-r--r--src/LYCgi.c42
-rw-r--r--src/LYGetFile.c2
-rw-r--r--userdefs.h4
7 files changed, 57 insertions, 14 deletions
diff --git a/CHANGES b/CHANGES
index b71d923f..ff86eaf3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,14 @@
Changes since Lynx 2.8 release
===============================================================================
+2005-10-30 (2.8.6dev.15)
+* update URL for VMS server information in LYCgi.c
+* modify LYLoadCGI() to prompt user, displaying the command that would be
+ executed, to confirm that it should be. This makes it easier to notice when
+ a local program would be run by activating a lynxcgi link. This is not done
+ in advanced mode, since the URL is already visible in the status line (report
+ by vade79, comments by Greg MacManus) -TD
+
2005-10-17 (2.8.6dev.14)
* add configure script support for large files; some changes made be needed to
the C code in dev.15 to exploit this -TD
@@ -33,11 +41,12 @@ Changes since Lynx 2.8 release
* ifdef'd out unused code in HTGroup.c -TD
* eliminate fixed-size buffers in LYExpandHostForURL() to guard against
buffer overflow resulting from too-long domain prefix/suffix data from
- lynx.cfg (report by Ulf Harnhammar, CAN-2005-3120) -TD
+ lynx.cfg (report by Ulf Harnhammar) -TD
* add a check for missing ':' in gopher response, to recover from the error
(patch by Ulf Harnhammar)
* eliminate fixed-size buffers in HTrjis() and related functions to avoid
- potential buffer overflow in nntp pages (report by Ulf Harnhammar) -TD
+ potential buffer overflow in nntp pages (report by Ulf Harnhammar,
+ CAN-2005-3120) -TD
* correct "escape" character used in HTMake822Word, which was literally an
ASCII escape character rather than the RFC-822 backslash from 2.8.2dev.3
changes (report by Frederic Briere, Debian #318034) -TD
diff --git a/configure b/configure
index e9509fd2..6cdb9fca 100755
--- a/configure
+++ b/configure
@@ -1223,7 +1223,7 @@ fi;
PACKAGE=lynx
# $Format: "VERSION=$ProjectVersion$"$
-VERSION=2.8.6dev.14
+VERSION=2.8.6dev.15
test -z "$ALL_LINGUAS" && ALL_LINGUAS=`test -d $srcdir/po && cd $srcdir/po && echo *.po|sed -e 's/\.po//g' -e 's/*//'`
diff --git a/configure.in b/configure.in
index b48723d1..fabd2793 100644
--- a/configure.in
+++ b/configure.in
@@ -5,7 +5,7 @@ dnl and Jim Spath <jspath@mail.bcpl.lib.md.us>
dnl
dnl ask PRCS to plug-in the project-version for the configure-script.
dnl $Format: "AC_REVISION($ProjectVersion$)"$
-AC_REVISION(2.8.6dev.14)
+AC_REVISION(2.8.6dev.15)
# Save the original $CFLAGS so we can distinguish whether the user set those
# in the environment, or whether autoconf added -O and -g options:
@@ -37,7 +37,7 @@ AC_ARG_WITH(system-type,
PACKAGE=lynx
dnl ask PRCS to plug-in the project-version for the packages.
# $Format: "VERSION=$ProjectVersion$"$
-VERSION=2.8.6dev.14
+VERSION=2.8.6dev.15
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(DESTDIR)
diff --git a/lynx.cfg b/lynx.cfg
index 4487c9df..5949bdb1 100644
--- a/lynx.cfg
+++ b/lynx.cfg
@@ -3,10 +3,10 @@
# or Lynx_Dir:lynx.cfg (VMS)
#
# $Format: "#PRCS LYNX_VERSION \"$ProjectVersion$\""$
-#PRCS LYNX_VERSION "2.8.6dev.14"
+#PRCS LYNX_VERSION "2.8.6dev.15"
#
# $Format: "#PRCS LYNX_DATE \"$ProjectDate$\""$
-#PRCS LYNX_DATE "Sun, 16 Oct 2005 17:17:20 -0700"
+#PRCS LYNX_DATE "Sun, 30 Oct 2005 12:54:26 -0800"
#
# Definition pairs are of the form VARIABLE:DEFINITION
# NO spaces are allowed between the pair items.
diff --git a/src/LYCgi.c b/src/LYCgi.c
index 638543da..1969b227 100644
--- a/src/LYCgi.c
+++ b/src/LYCgi.c
@@ -149,6 +149,40 @@ static int LYLoadCGI(const char *arg,
return -1;
}
#else
+#ifdef LYNXCGI_LINKS
+/*
+ * Wrapper for exec_ok(), confirming with user if the link text is not visible
+ * in the status line.
+ */
+static BOOL can_exec_cgi(const char *linktext, const char *linkargs)
+{
+ const char *format = gettext("Do you want to execute \"%s\"?");
+ char *message = NULL;
+ char *command = NULL;
+ char *p;
+ BOOL result = TRUE;
+
+ if (!exec_ok(HTLoadedDocumentURL(), linktext, CGI_PATH)) {
+ /* exec_ok gives out msg. */
+ result = FALSE;
+ } else if (user_mode < ADVANCED_MODE) {
+ StrAllocCopy(command, linktext);
+ if (non_empty(linkargs)) {
+ HTSprintf(&command, " %s", linkargs);
+ }
+ HTUnEscape(command);
+ for (p = command; *p; ++p)
+ if (*p == '+')
+ *p = ' ';
+ HTSprintf0(&message, format, command);
+ result = HTConfirm(message);
+ FREE(message);
+ FREE(command);
+ }
+ return result;
+}
+#endif /* LYNXCGI_LINKS */
+
static int LYLoadCGI(const char *arg,
HTParentAnchor *anAnchor,
HTFormat format_out,
@@ -281,8 +315,7 @@ static int LYLoadCGI(const char *arg,
strcmp(arg, HTLoadedDocumentURL()) &&
HText_AreDifferent(anAnchor, arg) &&
HTUnEscape(orig_pgm) &&
- !exec_ok(HTLoadedDocumentURL(), orig_pgm,
- CGI_PATH)) { /* exec_ok gives out msg. */
+ !can_exec_cgi(orig_pgm, "")) {
/*
* If we have extra path info and are not just reloading the current,
* check the full file path (after unescaping) now to catch forbidden
@@ -312,8 +345,7 @@ static int LYLoadCGI(const char *arg,
!(reloading && anAnchor->document) &&
strcmp(arg, HTLoadedDocumentURL()) &&
HText_AreDifferent(anAnchor, arg) &&
- !exec_ok(HTLoadedDocumentURL(), pgm,
- CGI_PATH)) { /* exec_ok gives out msg. */
+ !can_exec_cgi(pgm, pgm_args)) {
/*
* If we are reloading a lynxcgi document that had already been loaded,
* the various checks above should allow it even if exec_ok() would
@@ -675,7 +707,7 @@ static int LYLoadCGI(const char *arg,
PUTS(buf);
HTSprintf0(&buf,
- "href=\"http://kcgl1.eng.ohio-state.edu/www/doc/serverinfo.html\"\n");
+ "href=\"http://www.ecr6.ohio-state.edu/www/doc/serverinfo.html\"\n");
PUTS(buf);
HTSprintf0(&buf, ">%s</a>.\n", gettext("this link"));
diff --git a/src/LYGetFile.c b/src/LYGetFile.c
index 10e80f04..248ffa17 100644
--- a/src/LYGetFile.c
+++ b/src/LYGetFile.c
@@ -1474,6 +1474,8 @@ BOOLEAN exec_ok(const char *source,
if (strstr(command, "//") == linktext) {
command += 2;
}
+ CTRACE((tfp, "comparing source\n\t'%s'\n\t'%s'\n", source, tp->src));
+ CTRACE((tfp, "comparing command\n\t'%s'\n\t'%s'\n", command, tp->path));
if (STRNADDRCOMP(source, tp->src, strlen(tp->src)) == 0 &&
STRNADDRCOMP(command, tp->path, strlen(tp->path)) == 0)
return TRUE;
diff --git a/userdefs.h b/userdefs.h
index 96d0a22b..f2a57077 100644
--- a/userdefs.h
+++ b/userdefs.h
@@ -1360,11 +1360,11 @@
* the version definition with the Project Version on checkout. Just
* ignore it. - kw */
/* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */
-#define LYNX_VERSION "2.8.6dev.14"
+#define LYNX_VERSION "2.8.6dev.15"
#define LYNX_WWW_HOME "http://lynx.isc.org/"
#define LYNX_WWW_DIST "http://lynx.isc.org/current/"
/* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */
-#define LYNX_DATE "Sun, 16 Oct 2005 17:17:20 -0700"
+#define LYNX_DATE "Sun, 30 Oct 2005 12:54:26 -0800"
#define LYNX_DATE_OFF 5 /* truncate the automatically-generated date */
#define LYNX_DATE_LEN 11 /* truncate the automatically-generated date */