mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 21:00:31 +08:00
src/iri.c: Use c_strcasestr instead of strcasestr
This also fixes a problem with strcasestr not being in the boostrap.conf module list. Reported-by: Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
This commit is contained in:
parent
0a4826f4a1
commit
cbaabe78e8
@ -32,6 +32,7 @@ base32
|
|||||||
bind
|
bind
|
||||||
c-ctype
|
c-ctype
|
||||||
c-strcase
|
c-strcase
|
||||||
|
c-strcasestr
|
||||||
clock-time
|
clock-time
|
||||||
close
|
close
|
||||||
connect
|
connect
|
||||||
|
@ -40,6 +40,7 @@ as that of the covered work. */
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "url.h"
|
#include "url.h"
|
||||||
#include "c-strcase.h"
|
#include "c-strcase.h"
|
||||||
|
#include "c-strcasestr.h"
|
||||||
|
|
||||||
/* RFC3987 section 3.1 mandates STD3 ASCII RULES */
|
/* RFC3987 section 3.1 mandates STD3 ASCII RULES */
|
||||||
#define IDNA_FLAGS IDNA_USE_STD3_ASCII_RULES
|
#define IDNA_FLAGS IDNA_USE_STD3_ASCII_RULES
|
||||||
@ -56,7 +57,7 @@ parse_charset (char *str)
|
|||||||
if (!str || !*str)
|
if (!str || !*str)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
str = strcasestr (str, "charset=");
|
str = c_strcasestr (str, "charset=");
|
||||||
if (!str)
|
if (!str)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user