aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-30 15:16:52 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-30 15:16:52 +0000
commitf1f8be0b98eb76f47849cd5e9390929b37f3200c (patch)
tree9b5c83fdd867f83cba795f3e6c50b62fd91f1eb9
parent[w3m-dev 02933] segmentation fault when w3m -dump https: (diff)
downloadw3m-f1f8be0b98eb76f47849cd5e9390929b37f3200c.tar.gz
w3m-f1f8be0b98eb76f47849cd5e9390929b37f3200c.zip
[w3m-dev 02934] add auth cookie with unquoted realm
* file.c (loadGeneralFile): need unquote realm From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
-rw-r--r--ChangeLog7
-rw-r--r--file.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b318733..a158411 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2002-01-31 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+ * [w3m-dev 02934] add auth cookie with unquoted realm
+ * file.c (loadGeneralFile): need unquote realm
+
+2002-01-31 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 02933] segmentation fault when w3m -dump https:
* file.c (readHeader): use inputAnswer()
* file.c (getAuthCookie): remove term_cbreak()
@@ -2421,4 +2426,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.277 2002/01/30 15:08:48 ukai Exp $
+$Id: ChangeLog,v 1.278 2002/01/30 15:16:52 ukai Exp $
diff --git a/file.c b/file.c
index 4a3b089..1f25f2b 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.51 2002/01/30 15:08:48 ukai Exp $ */
+/* $Id: file.c,v 1.52 2002/01/30 15:16:52 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1533,7 +1533,7 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
}
if (add_auth_cookie_flag)
/* If authorization is required and passed */
- add_auth_cookie(pu.host, pu.port, realm->ptr, ss);
+ add_auth_cookie(pu.host, pu.port, qstr_unquote(realm)->ptr, ss);
if (status == HTST_CONNECT) {
of = &f;
goto load_doc;