From 102e5f9858a3d54e7d7cc81122e58fc130525594 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Thu, 20 Jul 2017 15:04:16 +0200 Subject: [PATCH] html_utils: URL unescape parameter fields For some strange reason even post data is URL escaped on our servers. How I discovered this issue: 1. go to stage 2. leave some files in the state ? 3. click the Commit link 4. get the error 'process_stage_list: unknown method %3F' URL decode '%3F' and see that the value is '?'. The value is set to the hidden input fields in its unescaped form in the function submitSapeventForm() but the value is escaped in the method lif_gui_page~on_event of the class lcl_gui_page_stage. --- src/zabapgit_html_action_utils.prog.abap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zabapgit_html_action_utils.prog.abap b/src/zabapgit_html_action_utils.prog.abap index b7c0bacd8..6b29c2f35 100644 --- a/src/zabapgit_html_action_utils.prog.abap +++ b/src/zabapgit_html_action_utils.prog.abap @@ -124,9 +124,11 @@ CLASS lcl_html_action_utils IMPLEMENTATION. field-name = substring_before( val = sub = '=' ). + field-name = cl_http_utility=>unescape_url( field-name ). field-value = substring_after( val = sub = '=' ). + field-value = cl_http_utility=>unescape_url( field-value ). INSERT field INTO TABLE rt_fields.