Project

General

Profile

RE: Session-persistent load balancing without load balanc... ยป loadBalancerLinkLyingForLinkSharing.patch

d3fault d3fault, 09/02/2014 07:28 PM

View differences:

src/Wt/WAnchor.C
url = app->encodeUntrustedUrl(url);
std::string href = url;
element.setAttribute("href", href);
if(linkState.link.type() == WLink::InternalPath && app->environment().ajax() && href[0] == '/')
element.setAttribute("href", "http://www.myloadbalancer.com" + href);
else
element.setAttribute("href", href);
return !app->environment().hashInternalPaths()
&& href.find("://") == std::string::npos && href[0] != '/';
}
    (1-1/1)