From ff19adc6c8124172072f5f10678280687c0c8832 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Mon, 7 Jul 2014 11:27:31 +0200 Subject: [PATCH] Improved comment related to PATH_INFO and stripping multiple slashes sequence to single slash. --- library/server/ewsgi/connectors/nino/src/wgi_nino_handler.e | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/server/ewsgi/connectors/nino/src/wgi_nino_handler.e b/library/server/ewsgi/connectors/nino/src/wgi_nino_handler.e index 86eb66b0..528a48c1 100644 --- a/library/server/ewsgi/connectors/nino/src/wgi_nino_handler.e +++ b/library/server/ewsgi/connectors/nino/src/wgi_nino_handler.e @@ -184,7 +184,11 @@ feature -- Request processing end env.force ("", "SCRIPT_NAME") end - --| Strip multiple slashes "////abc/def///end////" to "/abc/def/end/" ? + --| In order to have same path value for PATH_INFO on various connectors and servers + --| the multiple slashes must be stripped to single slash. + --| tested with: CGI+apache, libfcgi+apache on Windows and Linux + --| + --| For example: "////abc/def///end////" to "/abc/def/end/" ? convert_multiple_slashes_to_single (l_path_info) env.force (enc.decoded_utf_8_string (l_path_info), "PATH_INFO") end