From d98d853986afe7a7a81befdb75fdcf929f42e989 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Mon, 17 Sep 2018 16:15:57 -0500 Subject: [PATCH] Fix haml-lint error in 2FA codes partial Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51585 --- app/views/profiles/two_factor_auths/_codes.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'