diff options
author | Valery Sizov <valery@gitlab.com> | 2015-05-21 09:49:15 +0000 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-05-21 09:49:15 +0000 |
commit | 30ce95b2fea8438b646d22b98ce22301bfab157b (patch) | |
tree | d365bd1159e3ff5d2e3b43f97cf197300f304782 /lib/api/helpers.rb | |
parent | 1776dc536302257af9201c93e8810a1783af5e02 (diff) | |
parent | ccbb729be6b3c1284cc7f74adb11f4ae91298d11 (diff) | |
download | gitlab-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.rb | 2 |
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! |