Replace any multiple slash sequence by a single slash character for PATH_INFO.

This commit is contained in:
2014-07-02 11:36:43 +02:00
parent 446c692f97
commit 1b4b50ee80
2 changed files with 34 additions and 6 deletions

View File

@@ -387,11 +387,8 @@ feature {NONE} -- Element change: CGI meta parameter related to PATH_INFO
end
l_request_uri := s8
end
--| FIXME: should it strip "////abc/def" to "/abc/def" ?
--| Not sure why this was done before.
-- l_request_uri := single_slash_starting_string (l_request_uri)
request_uri := l_request_uri
set_meta_string_variable ({WGI_META_NAMES}.request_uri, l_request_uri)
request_uri := l_request_uri
end
set_orig_path_info (s: READABLE_STRING_8)
@@ -418,6 +415,7 @@ feature {NONE} -- Element change: CGI meta parameter related to PATH_INFO
l_path_info: STRING
do
l_path_info := path_info
--| Warning
--| on IIS: we might have PATH_INFO = /sample.exe/foo/bar
--| on apache: PATH_INFO = /foo/bar