[w3m-dev 03017] URI scheme is case insensitive

* url.c (searchURIMethods): s/strcmp/strcasecmp/
From: Yuji Abe <cbo46560@pop12.odn.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-02-08 11:20:14 +00:00
parent b974490602
commit 732bd9f443
2 changed files with 9 additions and 4 deletions

6
url.c
View File

@@ -1,4 +1,4 @@
/* $Id: url.c,v 1.41 2002/02/04 14:49:21 ukai Exp $ */
/* $Id: url.c,v 1.42 2002/02/08 11:20:14 ukai Exp $ */
#include <stdio.h>
#include "config.h"
#include "fm.h"
@@ -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));
}
}