diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-08-16 14:20:41 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-08-16 14:20:41 +0000 |
commit | 5610ad29e37324cd0a4bdf7663564945e6b66f18 (patch) | |
tree | c1e5481e5edfa4e9287978551b653c4fdd367af1 /ext/standard/url.c | |
parent | 23d4f9882fd7e94d717767d98fecfd4b019df5c1 (diff) | |
download | php-git-5610ad29e37324cd0a4bdf7663564945e6b66f18.tar.gz |
MFH: Fixed bug #34148 (+,- and . not supported as parts of scheme).
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r-- | ext/standard/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c index 68280177f7..6e499afe95 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -107,7 +107,8 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length) /* validate scheme */ p = s; while (p < e) { - if (!isalnum(*p)) { + /* scheme = 1*[ lowalpha | digit | "+" | "-" | "." ] */ + if (!isalpha(*p) && !isdigit(*p) && *p != '+' && *p != '.' && *p != '-') { if (e + 1 < ue) { goto parse_port; } else { |