Use colons to separate token whitelist
This commit is contained in:
@@ -110,7 +110,7 @@ func Coffee(writer http.ResponseWriter, request *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
unsafeWhitelist := strings.Split(os.Getenv("COMMA_SEPARATED_TOKEN_WHITELIST"), ",")
|
||||
unsafeWhitelist := strings.Split(os.Getenv("COLON_SEPARATED_TOKEN_WHITELIST"), ":")
|
||||
whitelist := omitEmptyStrings(unsafeWhitelist)
|
||||
|
||||
if !contains(whitelist, incomingMsg.Token) {
|
||||
|
||||
Reference in New Issue
Block a user