From c2e06293a03e3a2b4f6d64652c6657bb21680671 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Sun, 21 Oct 2012 18:21:15 +0200 Subject: [PATCH] fix target_ok? regexp --- Gemfile.lock | 2 +- lib/travis/api/app/endpoint/authorization.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 74e05db3..3009188d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -40,7 +40,7 @@ GIT GIT remote: git://github.com/travis-ci/travis-core.git - revision: fedf82724c26f4f868d6d9a9d7f7568aeb663edb + revision: 6c02e7a1ddddc73054bd7eb351c53ce8523d7cb1 branch: sf-travis-api specs: travis-core (0.0.1) diff --git a/lib/travis/api/app/endpoint/authorization.rb b/lib/travis/api/app/endpoint/authorization.rb index bd2919f3..3ab4e157 100644 --- a/lib/travis/api/app/endpoint/authorization.rb +++ b/lib/travis/api/app/endpoint/authorization.rb @@ -224,7 +224,7 @@ class Travis::Api::App def target_ok?(target_origin) target_origin =~ %r{ ^ http:// (localhost|127\.0\.0\.1)(:\d+)? $ | - ^ https:// ([\w-_]+\.)?travis-ci\.(org|com) $ + ^ https:// ([\w\-_]+\.)?travis-ci\.(org|com) $ }x end end