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.
This commit is contained in:
2017-01-10 11:59:48 +01:00
parent ee9746449c
commit 56fa773b30

View File

@@ -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)