diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-20 17:07:34 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-20 19:15:13 +0200 |
commit | cf6a35f09a3f38b124bd0e6013950f21b5bb1851 (patch) | |
tree | e8b7664ffe5a4e7588cd57c94618a1843ab88327 /lib | |
parent | 0672c5a92e8be90da0cb79f277bb7aee82fdba8a (diff) | |
download | gitlab-ce-cf6a35f09a3f38b124bd0e6013950f21b5bb1851.tar.gz |
Improve JwtController implementationpost-merge-improve-of-ci-permissions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/mask_secret.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ci/mask_secret.rb b/lib/ci/mask_secret.rb index 3388a642eb4..997377abc55 100644 --- a/lib/ci/mask_secret.rb +++ b/lib/ci/mask_secret.rb @@ -1,9 +1,10 @@ module Ci::MaskSecret class << self def mask!(value, token) - return unless value.present? && token.present? + return value unless value.present? && token.present? value.gsub!(token, 'x' * token.length) + value end end end |