about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2013-10-03 08:21:55 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2013-10-03 08:21:55 -0400
commit6d47b44511310c62f3a8897b0b6e2c8c3e08cd7e (patch)
treec97ce9b0a137127fffbaca40310aa6ffe0bceeb3
parent2ece1f977bb53217adbb83948ecfeec75db7cf4b (diff)
downloadlynx-snapshots-6d47b44511310c62f3a8897b0b6e2c8c3e08cd7e.tar.gz
snapshot of project "lynx", label v2-8-8dev_16k
-rw-r--r--CHANGES10
-rw-r--r--src/LYList.c6
2 files changed, 12 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index 6c75ae7a..21e9861a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
--- $LynxId: CHANGES,v 1.666 2013/10/03 01:05:01 tom Exp $
+-- $LynxId: CHANGES,v 1.669 2013/10/03 08:21:55 tom Exp $
 ===============================================================================
 Changes since Lynx 2.8 release
 ===============================================================================
@@ -6,8 +6,12 @@ Changes since Lynx 2.8 release
 2013-10-02 (2.8.8dev.17)
 * modify the INFO page, normally bound to "=", to show decoded strings for
   URLs, e.g., which use %xy hexadecimal encoding.  The decoded strings are
-  shown on the line following the encoded URLs if the strings are different
-  (Debian #398274) -TD
+  shown on the line following the encoded URLs if the strings are different.
+  Also if display-charset is UTF-8, modify -dump "References" URLs to show
+  the corresponding decoded strings for consistency with the text which is
+  already in UTF-8.  Other URLs such as that shown in the status area are
+  shown in encoded form per previous discussion which recommending doing this
+  to address phishing attempts (Debian #398274) -TD
 * simplify file-URLs shown in reference list of -dump by trimming unnecessary
   "localhost", e.g.,
     file://localhost/XXX
diff --git a/src/LYList.c b/src/LYList.c
index b310c825..edd4f52a 100644
--- a/src/LYList.c
+++ b/src/LYList.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYList.c,v 1.52 2013/10/02 23:22:43 tom Exp $
+ * $LynxId: LYList.c,v 1.53 2013/10/03 07:46:14 tom Exp $
  *
  *			Lynx Document Reference List Support	      LYList.c
  *			====================================
@@ -12,6 +12,7 @@
 #include <HTAlert.h>
 #include <LYUtils.h>
 #include <GridText.h>
+#include <HTParse.h>
 #include <LYList.h>
 #include <LYMap.h>
 #include <LYClean.h>
@@ -293,6 +294,9 @@ static int print_refs(FILE *fp, int titles, int refs)
 		    fprintf(fp, "%s\n", title);
 		} else {
 		    address = HTAnchor_short_address(dest);
+		    if (LYCharSet_UC[current_char_set].enc == UCT_ENC_UTF8) {
+			(void) HTUnEscape(address);
+		    }
 		    fprintf(fp, "%s\n", address);
 		    FREE(address);
 		}