mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
strip matrix parameter like ;jsessionid
This commit is contained in:
@@ -247,11 +247,14 @@ public class DefaultCGIExecutor extends AbstractCGIExecutor
|
|||||||
*/
|
*/
|
||||||
private EnvList createEnvironment()
|
private EnvList createEnvironment()
|
||||||
{
|
{
|
||||||
String pathInfo = request.getPathInfo();
|
|
||||||
String scriptName = request.getRequestURI().substring(0,
|
// remove ;jsessionid
|
||||||
request.getRequestURI().length() - pathInfo.length());
|
String pathInfo = HttpUtil.removeMatrixParameter(request.getPathInfo());
|
||||||
|
String uri = HttpUtil.removeMatrixParameter(request.getRequestURI());
|
||||||
|
String scriptName = uri.substring(0, uri.length() - pathInfo.length());
|
||||||
String scriptPath = context.getRealPath(scriptName);
|
String scriptPath = context.getRealPath(scriptName);
|
||||||
String pathTranslated = request.getPathTranslated();
|
String pathTranslated =
|
||||||
|
HttpUtil.removeMatrixParameter(request.getPathTranslated());
|
||||||
int len = request.getContentLength();
|
int len = request.getContentLength();
|
||||||
EnvList env = new EnvList();
|
EnvList env = new EnvList();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user