From ce9a85c416416acc35ff3626163abad2a5a5479b Mon Sep 17 00:00:00 2001 From: Jonhen Date: Fri, 19 Aug 2022 19:55:30 +0700 Subject: [PATCH] Update code_review_controller.rb on error the input of URI.decode_www_form must be ASCII only string --- app/controllers/code_review_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/code_review_controller.rb b/app/controllers/code_review_controller.rb index 0e3ec0b..d13c18e 100644 --- a/app/controllers/code_review_controller.rb +++ b/app/controllers/code_review_controller.rb @@ -246,7 +246,7 @@ def show if request.xhr? || !params[:update].blank? render partial: 'show' elsif target.path - path = URI.decode_www_form(target.path) + path = URI.decode_www_form(URI.encode(target.path)) action_name = target.action_type rev_to = '' rev_to = '&rev_to=' + target.rev_to if target.rev_to