summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-05-21 09:49:15 +0000
committerValery Sizov <valery@gitlab.com>2015-05-21 09:49:15 +0000
commit30ce95b2fea8438b646d22b98ce22301bfab157b (patch)
treed365bd1159e3ff5d2e3b43f97cf197300f304782 /lib/api/helpers.rb
parent1776dc536302257af9201c93e8810a1783af5e02 (diff)
parentccbb729be6b3c1284cc7f74adb11f4ae91298d11 (diff)
downloadgitlab-ci-30ce95b2fea8438b646d22b98ce22301bfab157b.tar.gz
Merge branch 'fix_api_vulnerability' into 'master'
Fix API vulnerability with MySQL https://dev.gitlab.org/gitlab/gitlab-ci/issues/228 See merge request !155
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 215792a..d768624 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -14,7 +14,7 @@ module API
end
def current_runner
- @runner ||= Runner.find_by_token(params[:token])
+ @runner ||= Runner.find_by_token(params[:token].to_s)
end
def authenticate!