We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb37439 commit 0a642c5Copy full SHA for 0a642c5
modules/uri/checks.c
@@ -349,7 +349,7 @@ static inline int e164_check(str* _user)
349
char c;
350
351
if ((_user->len > 2) && (_user->len < 17) && ((_user->s)[0] == '+')) {
352
- for (i = 1; i <= _user->len; i++) {
+ for (i = 1; i < _user->len; i++) {
353
c = (_user->s)[i];
354
if (c < '0' || c > '9') return -1;
355
}
0 commit comments