mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
decode cgi environment variable PATH_INFO
This commit is contained in:
@@ -281,6 +281,15 @@ public class DefaultCGIExecutor extends AbstractCGIExecutor
|
|||||||
env.set(ENV_CONTENT_LENGTH, Integer.toString(len));
|
env.set(ENV_CONTENT_LENGTH, Integer.toString(len));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Decode PATH_INFO
|
||||||
|
* https://bitbucket.org/sdorra/scm-manager/issue/79/hgweb-decoding-issue
|
||||||
|
*/
|
||||||
|
if (Util.isNotEmpty(pathInfo))
|
||||||
|
{
|
||||||
|
pathInfo = HttpUtil.decode(pathInfo);
|
||||||
|
}
|
||||||
|
|
||||||
env.set(ENV_CONTENT_TYPE, Util.nonNull(request.getContentType()));
|
env.set(ENV_CONTENT_TYPE, Util.nonNull(request.getContentType()));
|
||||||
env.set(ENV_GATEWAY_INTERFACE, CGI_VERSION);
|
env.set(ENV_GATEWAY_INTERFACE, CGI_VERSION);
|
||||||
env.set(ENV_PATH_INFO, pathInfo);
|
env.set(ENV_PATH_INFO, pathInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user