From a7238b9d8dfc5c2afd06cc2d476a814f0e0ec02a Mon Sep 17 00:00:00 2001 From: Jeremy Rudman Date: Thu, 17 Dec 2020 23:50:13 -0500 Subject: [PATCH 1/2] fix(hakiri): corrected unescaped model attribute --- app/views/doorkeeper/authorizations/error.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/doorkeeper/authorizations/error.html.haml b/app/views/doorkeeper/authorizations/error.html.haml index e96f0e7a5..a6172a71a 100644 --- a/app/views/doorkeeper/authorizations/error.html.haml +++ b/app/views/doorkeeper/authorizations/error.html.haml @@ -6,5 +6,5 @@ %p = @pre_auth.error_response.body[:error_description] %p - = raw t('doorkeeper.errors.messages.get_help', hackathon_name: content_tag(:strong, class: 'text-info') { HackathonConfig['name'] }) + = t('doorkeeper.errors.messages.get_help', hackathon_name: content_tag(:strong, class: 'text-info') { HackathonConfig['name'] }) From b549a7b224912670e24a69e5085b749a270534f8 Mon Sep 17 00:00:00 2001 From: Jeremy Rudman Date: Fri, 18 Dec 2020 00:10:13 -0500 Subject: [PATCH 2/2] fix(hakiri): added html_safe to show proper output --- app/views/doorkeeper/authorizations/error.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/doorkeeper/authorizations/error.html.haml b/app/views/doorkeeper/authorizations/error.html.haml index a6172a71a..adcc19217 100644 --- a/app/views/doorkeeper/authorizations/error.html.haml +++ b/app/views/doorkeeper/authorizations/error.html.haml @@ -6,5 +6,5 @@ %p = @pre_auth.error_response.body[:error_description] %p - = t('doorkeeper.errors.messages.get_help', hackathon_name: content_tag(:strong, class: 'text-info') { HackathonConfig['name'] }) + = t('doorkeeper.errors.messages.get_help', hackathon_name: content_tag(:strong, class: 'text-info') { HackathonConfig['name'] }).html_safe