Skip to content

Commit

Permalink
Rm unneeded function
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Jan 27, 2021
1 parent 66a21e9 commit e9b8b08
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions ext/standard/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,6 @@ static const char *binary_strcspn(const char *s, const char *e, const char *char
return e;
}

static int is_userinfo_valid(const char *str, size_t len)
{
const char *valid = "-._~!$&'()*+,;=:";
const char *p = str;
while (p - str < len) {
if (isalpha(*p) || isdigit(*p) || strchr(valid, *p)) {
p++;
} else if (*p == '%' && p - str <= len - 3 && isdigit(*(p+1)) && isxdigit(*(p+2))) {
p += 3;
} else {
return 0;
}
}
return 1;
}

/* {{{ php_url_parse */
PHPAPI php_url *php_url_parse_ex(char const *str, size_t length)
{
Expand Down

0 comments on commit e9b8b08

Please sign in to comment.