Skip to content

Commit

Permalink
第二十三章 多项目集中权限管理
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangkaitao committed Mar 16, 2014
1 parent fa75e8d commit 8915305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ private String getDefaultBackUrl(HttpServletRequest request) {
backUrl.append("://");
backUrl.append(domain);
if("http".equalsIgnoreCase(scheme) && port != 80) {
backUrl.append(String.valueOf(port));
backUrl.append(":").append(String.valueOf(port));
} else if("https".equalsIgnoreCase(scheme) && port != 443) {
backUrl.append(String.valueOf(port));
backUrl.append(":").append(String.valueOf(port));
}
backUrl.append(contextPath);
backUrl.append(getSuccessUrl());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public String getRequestUrl() {
requestUrl.append(domain);//5
//6
if("http".equalsIgnoreCase(scheme) && port != 80) {
requestUrl.append(String.valueOf(port));
requestUrl.append(":").append(String.valueOf(port));
} else if("https".equalsIgnoreCase(scheme) && port != 443) {
requestUrl.append(String.valueOf(port));
requestUrl.append(":").append(String.valueOf(port));
}
//7
requestUrl.append(requestURI);
Expand Down

0 comments on commit 8915305

Please sign in to comment.