Skip to content

Commit 491b1ef

Browse files
husmansmalyshev
authored andcommitted
Bug #63162 - parse_url does not matches password component
1 parent f879e11 commit 491b1ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/standard/url.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length)
201201
STR_FREE(ret->scheme);
202202
efree(ret);
203203
return NULL;
204+
} else if (*s == '/' && *(s+1) == '/') { /* relative-scheme URL */
205+
s += 2;
204206
} else {
205207
goto just_path;
206208
}

0 commit comments

Comments
 (0)