mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
github.com/yohcop/openid-go update to first tagged version (#11357)
This commit is contained in:
2
vendor/github.com/yohcop/openid-go/normalizer.go
generated
vendored
2
vendor/github.com/yohcop/openid-go/normalizer.go
generated
vendored
@ -25,7 +25,7 @@ func Normalize(id string) (string, error) {
|
||||
// Global Context Symbol ("=", "@", "+", "$", "!") or "(", as
|
||||
// defined in Section 2.2.1 of [XRI_Syntax_2.0], then the input
|
||||
// SHOULD be treated as an XRI.
|
||||
if b := id[0]; b == '=' || b == '@' || b == '+' || b == '$' || b == '!' {
|
||||
if b := id[0]; b == '=' || b == '@' || b == '+' || b == '$' || b == '!' || b == '(' {
|
||||
return id, errors.New("XRI identifiers not supported")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user