Project

General

Profile

Bug #3638 ยป 0001-Do-not-urlEncodeS-forward-slash-in-internalPath.patch

Bruce Toll, 10/27/2014 12:59 PM

View differences:

src/web/WebSession.C
if (useUglyInternalPaths()) {
if (internalPath.length() > 1)
url = "?_=" + DomElement::urlEncodeS(internalPath, "#");
url = "?_=" + DomElement::urlEncodeS(internalPath, "#/");
if (isAbsoluteUrl(applicationUrl_))
url = applicationUrl_ + url;
......
return baseUrl;
else {
if (useUglyInternalPaths())
return baseUrl + "?_=" + DomElement::urlEncodeS(internalPath, "#");
return baseUrl + "?_=" + DomElement::urlEncodeS(internalPath, "#/");
else {
if (applicationName_.empty())
return baseUrl + DomElement::urlEncodeS(internalPath.substr(1), "#");
return baseUrl + DomElement::urlEncodeS(internalPath.substr(1), "#/");
else
return baseUrl + DomElement::urlEncodeS(internalPath, "#");
return baseUrl + DomElement::urlEncodeS(internalPath, "#/");
}
}
}
    (1-1/1)