mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 23:56:09 +10:00
Use allowed slack team name.
This commit is contained in:
@@ -40,7 +40,8 @@ class SlackService < Service
|
||||
project_name: project_name
|
||||
))
|
||||
|
||||
credentials = webhook.match(/(\w*).slack.com.*services\/(.*)/)
|
||||
credentials = webhook.match(/([\w-]*).slack.com.*services\/(.*)/)
|
||||
|
||||
if credentials.present?
|
||||
subdomain = credentials[1]
|
||||
token = credentials[2].split("token=").last
|
||||
|
||||
Reference in New Issue
Block a user