aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2007-05-23 12:14:24 +0000
committerDai Sato <satodai@w3m.jp>2007-05-23 12:14:24 +0000
commitbdeafaadf120e7b887a6a762eef2f17d9f48d348 (patch)
tree99bdc530a54e874c4dc35b9bc72f09ebcc2f8c67
parentchange char to unsigned char for HTML_DL_COMPACT(133). (diff)
downloadw3m-bdeafaadf120e7b887a6a762eef2f17d9f48d348.tar.gz
w3m-bdeafaadf120e7b887a6a762eef2f17d9f48d348.zip
decoding URLs in correct condition.
-rw-r--r--ChangeLog7
-rw-r--r--linein.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2f49a08..a30767e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-23 tamo
+
+ * [20070121110209@w3mbbs] unnecessary decoding in linein.c
+ * linein.c: decoding URLs in correct condition.
+
2007-05-23 Tsutomu OKADA
* [20061228000713@w3mbbs] avoid warning for file.c
@@ -8816,4 +8821,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.979 2007/05/23 12:01:43 inu Exp $
+$Id: ChangeLog,v 1.980 2007/05/23 12:14:24 inu Exp $
diff --git a/linein.c b/linein.c
index 03c14d1..b7e81b6 100644
--- a/linein.c
+++ b/linein.c
@@ -1,4 +1,4 @@
-/* $Id: linein.c,v 1.34 2003/09/26 17:59:51 ukai Exp $ */
+/* $Id: linein.c,v 1.35 2007/05/23 12:14:24 inu Exp $ */
#include "fm.h"
#include "local.h"
#include "myctype.h"
@@ -1025,7 +1025,7 @@ _prev(void)
return;
strCurrentBuf = strBuf;
}
- if (DecodeURL)
+ if (DecodeURL && (cm_mode & CPL_URL) )
p = url_unquote_conv(p, 0);
strBuf = Strnew_charp(p);
CLen = CPos = setStrType(strBuf, strProp);
@@ -1044,7 +1044,7 @@ _next(void)
return;
p = nextHist(hist);
if (p) {
- if (DecodeURL)
+ if (DecodeURL && (cm_mode & CPL_URL) )
p = url_unquote_conv(p, 0);
strBuf = Strnew_charp(p);
}