Fix haml-lint error in 2FA codes partial

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51585
This commit is contained in:
Robert Speicher 2018-09-17 16:15:57 -05:00
parent 2a7b1367eb
commit d98d853986
No known key found for this signature in database
GPG key ID: 1D812769A7706642

View file

@ -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'