commit c375a3d961489a85e3e6c3e23da170f71a1bdfc5
parent 4bdaa5b8b1471449edc731f8a1333eaf98959cdb
Author: ukai <ukai>
Date: Wed, 30 Jan 2002 15:16:52 +0000
[w3m-dev 02934] add auth cookie with unquoted realm
* file.c (loadGeneralFile): need unquote realm
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git 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()
diff --git a/file.c b/file.c
@@ -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;