diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-09-17 22:30:32 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-09-17 22:30:32 +0000 |
commit | cc2dab3b932c95084f231de95da2010f043f5ddc (patch) | |
tree | c7d80db6889b01ce7ea83aca30a3d99172c314b7 | |
parent | 2a7b1367eb34aff8483d460cfda7b5d592585da5 (diff) | |
parent | d98d853986afe7a7a81befdb75fdcf929f42e989 (diff) | |
download | gitlab-ce-cc2dab3b932c95084f231de95da2010f043f5ddc.tar.gz |
Merge branch 'rs-fix-2fa-codes-lint' into 'master'
Fix haml-lint error in 2FA codes partial
Closes #51585
See merge request gitlab-org/gitlab-ce!21786
-rw-r--r-- | app/views/profiles/two_factor_auths/_codes.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/profiles/two_factor_auths/_codes.html.haml b/app/views/profiles/two_factor_auths/_codes.html.haml index 30a22099bbc..fb4fff12027 100644 --- a/app/views/profiles/two_factor_auths/_codes.html.haml +++ b/app/views/profiles/two_factor_auths/_codes.html.haml @@ -12,4 +12,4 @@ .d-flex = link_to 'Proceed', profile_account_path, class: 'btn btn-success append-right-10' - = link_to 'Download codes', "data:text/plain;charset=utf-8,#{URI.encode(@codes.join("\n"))}", download: "gitlab-recovery-codes.txt", class: 'btn btn-default' + = link_to 'Download codes', "data:text/plain;charset=utf-8,#{CGI.escape(@codes.join("\n"))}", download: "gitlab-recovery-codes.txt", class: 'btn btn-default' |