From f4c8d13a2c63c0ae8d9414ee38a920ba189073f0 Mon Sep 17 00:00:00 2001 From: Italo N Date: Sun, 27 Oct 2019 07:19:32 -0300 Subject: [PATCH] Bug - PROG name contain '%3D' (#2980) Issue #2923 --- src/ui/zcl_abapgit_html_action_utils.clas.abap | 6 +++--- src/utils/zcl_abapgit_path.clas.abap | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/zcl_abapgit_html_action_utils.clas.abap b/src/ui/zcl_abapgit_html_action_utils.clas.abap index abb3cc344..a36ed9e43 100644 --- a/src/ui/zcl_abapgit_html_action_utils.clas.abap +++ b/src/ui/zcl_abapgit_html_action_utils.clas.abap @@ -215,7 +215,8 @@ CLASS ZCL_ABAPGIT_HTML_ACTION_UTILS IMPLEMENTATION. IF eg_file IS SUPPLIED. get_field( EXPORTING iv_name = 'PATH' it_field = lt_fields CHANGING cg_field = eg_file ). - get_field( EXPORTING iv_name = 'FILENAME' it_field = lt_fields CHANGING cg_field = eg_file ). + get_field( EXPORTING iv_name = 'FILENAME' it_field = lt_fields iv_decode = abap_true + CHANGING cg_field = eg_file ). ENDIF. IF eg_object IS SUPPLIED. @@ -243,8 +244,7 @@ CLASS ZCL_ABAPGIT_HTML_ACTION_UTILS IMPLEMENTATION. lv_value = -value. IF iv_decode = abap_true. -* URL decode, not sure why some are decoded automatically - REPLACE ALL OCCURRENCES OF '%3d' IN lv_value WITH '='. + lv_value = cl_http_utility=>unescape_url( escaped = lv_value ). ENDIF. CASE cl_abap_typedescr=>describe_by_data( cg_field )->kind. diff --git a/src/utils/zcl_abapgit_path.clas.abap b/src/utils/zcl_abapgit_path.clas.abap index 042ecddd9..9756c099b 100644 --- a/src/utils/zcl_abapgit_path.clas.abap +++ b/src/utils/zcl_abapgit_path.clas.abap @@ -125,5 +125,7 @@ CLASS ZCL_ABAPGIT_PATH IMPLEMENTATION. ev_filename = iv_fullpath. ENDIF. + ev_filename = cl_http_utility=>unescape_url( escaped = ev_filename ). + ENDMETHOD. ENDCLASS.