From 56fa773b30437cb2967c6334543015fd1ced239a Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Tue, 10 Jan 2017 11:59:48 +0100 Subject: [PATCH] If PATH_INFO is "/", the percent encoded path info is also "/". No need for complex computation. Note this fixes an issue with libfcgi app not hosted as root url such as "/sub/app.fcgi" on (old) IIS server. --- library/server/wsf/src/wsf_request.e | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/server/wsf/src/wsf_request.e b/library/server/wsf/src/wsf_request.e index 6dc729c7..3348b97f 100644 --- a/library/server/wsf/src/wsf_request.e +++ b/library/server/wsf/src/wsf_request.e @@ -841,6 +841,8 @@ feature -- Access: CGI meta parameters - 1.1 pi := path_info if pi.is_empty then l_result := "" + elseif pi.count = 1 and then pi[1] = '/' then + l_result := "/" else r := request_uri i := r.index_of ('?', 1)