allow underscore and dash in subdomains
This commit is contained in:
parent
6252deadee
commit
720cbef577
|
@ -224,7 +224,7 @@ class Travis::Api::App
|
||||||
def target_ok?(target_origin)
|
def target_ok?(target_origin)
|
||||||
target_origin =~ %r{
|
target_origin =~ %r{
|
||||||
^ http:// (localhost|127\.0\.0\.1)(:\d+)? $ |
|
^ http:// (localhost|127\.0\.0\.1)(:\d+)? $ |
|
||||||
^ https:// (\w+\.)?travis-ci\.(org|com) $
|
^ https:// ([\w-_]+\.)?travis-ci\.(org|com) $
|
||||||
}x
|
}x
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user