crypt32: Don't get confused matching URLs with a colon in the userinfo portion (e.g. user:password@domain).
This commit is contained in:
parent
79a2045395
commit
4e18ac601f
|
@ -686,8 +686,12 @@ static BOOL url_matches(LPCWSTR constraint, LPCWSTR name,
|
|||
authority_end = strchrW(name, '?');
|
||||
if (!authority_end)
|
||||
authority_end = name + strlenW(name);
|
||||
/* Remove any port number from the authority */
|
||||
for (colon = authority_end; colon >= name && *colon != ':'; colon--)
|
||||
/* Remove any port number from the authority. The userinfo portion
|
||||
* of an authority may contain a colon, so stop if a userinfo portion
|
||||
* is found (indicated by '@').
|
||||
*/
|
||||
for (colon = authority_end; colon >= name && *colon != ':' &&
|
||||
*colon != '@'; colon--)
|
||||
;
|
||||
if (*colon == ':')
|
||||
authority_end = colon;
|
||||
|
|
Loading…
Reference in New Issue