We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7f5806 commit 8e7a813Copy full SHA for 8e7a813
src/httpparser/urlparser.h
@@ -158,7 +158,7 @@ class UrlParser
158
switch(state)
159
{
160
case Scheme:
161
- if( isalpha(ch) || ch == '+' || ch == '-' || ch == '.')
+ if( isalnum(ch) || ch == '+' || ch == '-' || ch == '.')
162
163
url.scheme += ch;
164
}
@@ -225,7 +225,7 @@ class UrlParser
225
226
break;
227
case Password:
228
- if( isalpha(ch) || ch == '%' )
+ if( isalnum(ch) || ch == '%' )
229
230
url.password += ch;
231
@@ -276,7 +276,7 @@ class UrlParser
276
url.integerPort = atoi(url.port.c_str());
277
state = Path;
278
279
- else if( isalpha(ch) || ch == '%' )
+ else if( isalnum(ch) || ch == '%' )
280
281
std::swap(url.username, usernameOrHostname);
282
std::swap(url.password, portOrPassword);
0 commit comments