commit 3bfa904dfbe38877e3a50d697eaae76abd77de0c
parent a5809b9b4e6b46a7e7da7739305ffdcc6f7e3893
Author: ukai <ukai>
Date: Fri, 8 Feb 2002 11:20:14 +0000
[w3m-dev 03017] URI scheme is case insensitive
* url.c (searchURIMethods): s/strcmp/strcasecmp/
From: Yuji Abe <cbo46560@pop12.odn.ne.jp>
Diffstat:
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-08 Yuji Abe <cbo46560@pop12.odn.ne.jp>
+
+ * [w3m-dev 03017] URI scheme is case insensitive
+ * url.c (searchURIMethods): s/strcmp/strcasecmp/
+
2002-02-08 Tsutomu Okada <okada@furuno.co.jp>
* [w3m-dev 03011] segmentation fault on <input> tag without <form>
diff --git a/url.c b/url.c
@@ -2077,13 +2077,13 @@ searchURIMethods(ParsedURL *pu)
for (i = 0; (ump = urimethods[i]) != NULL; i++) {
for (; ump->item1 != NULL; ump++) {
- if (strcmp(ump->item1, scheme->ptr) == 0) {
+ if (strcasecmp(ump->item1, scheme->ptr) == 0) {
return Sprintf(ump->item2, url_quote(url->ptr));
}
}
}
for (ump = default_urimethods; ump->item1 != NULL; ump++) {
- if (strcmp(ump->item1, scheme->ptr) == 0) {
+ if (strcasecmp(ump->item1, scheme->ptr) == 0) {
return Sprintf(ump->item2, url_quote(url->ptr));
}
}