[w3m-dev 04011] accessing to an `https' URI with a fragment via a proxy

ABE Yuji <[email protected]>
Newsgroups gmane.comp.web.w3m.devel
Message-ID <[email protected]>

proxy  https://host/path/to/file#label 
fragment  https: URI  URI 
fragment  https://host/path/to/file 
url.c:openURL()  fragment 
	pu->label = save_label;


 2 
 fragment 
HTTPrequestURI()  pu->label 

   1682d1681
   < 		pu->label = save_label;
   1683a1683
   > 	    pu->label = save_label;



diff -urN w3m-1.888/url.c w3m/url.c
--- w3m-1.888/url.c	2003-10-21 06:22:04.000000000 +0900
+++ w3m/url.c	2003-10-23 00:17:30.000000000 +0900
@@ -1340,7 +1340,10 @@
 	}
     }
     else {
+	char *save_label = pu->label;
+	pu->label = NULL;
 	Strcat(tmp, _parsedURL2Str(pu, TRUE));
+	pu->label = save_label;
     }
     return tmp;
 }
@@ -1627,7 +1630,6 @@
 #endif				/* USE_SSL */
 		non_null(HTTP_proxy)) && !Do_not_use_proxy &&
 	    pu->host != NULL && !check_no_proxy(pu->host)) {
-	    char *save_label;
 	    hr->flag |= HR_FLAG_PROXY;
 #ifdef USE_SSL
 	    if (pu->scheme == SCM_HTTPS && *status == HTST_CONNECT) {
@@ -1659,8 +1661,6 @@
 #endif
 		return uf;
 	    }
-	    save_label = pu->label;
-	    pu->label = NULL;
 #ifdef USE_SSL
 	    if (pu->scheme == SCM_HTTPS) {
 		if (*status == HTST_NORMAL) {
@@ -1679,7 +1679,6 @@
 	    {
 		tmp = HTTPrequest(pu, current, hr, extra_header);
 		*status = HTST_NORMAL;
-		pu->label = save_label;
 	    }
 	}
 	else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.