diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-08 11:20:14 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-08 11:20:14 +0000 |
commit | 732bd9f4432f00ae72a66437e3206ade48e5f8da (patch) | |
tree | 4d244c42ff6a6fb91b5592d0d5151669793d7553 /url.c | |
parent | [w3m-dev 03011] segmentation fault on <input> tag without <form> (diff) | |
download | w3m-732bd9f4432f00ae72a66437e3206ade48e5f8da.tar.gz w3m-732bd9f4432f00ae72a66437e3206ade48e5f8da.zip |
[w3m-dev 03017] URI scheme is case insensitive
* url.c (searchURIMethods): s/strcmp/strcasecmp/
From: Yuji Abe <cbo46560@pop12.odn.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | url.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); } } |