wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgrigo...@apache.org
Subject git commit: WICKET-5260 UrlRenderer#renderUrl() doesn't preserve the host
Date Mon, 01 Jul 2013 07:14:32 GMT
Updated Branches:
  refs/heads/wicket-6.x 807f063a5 -> f4784c2a5


WICKET-5260 UrlRenderer#renderUrl() doesn't preserve the host


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/f4784c2a
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/f4784c2a
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/f4784c2a

Branch: refs/heads/wicket-6.x
Commit: f4784c2a5abac0ffdac6d8455909a090b7190c13
Parents: 807f063
Author: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Authored: Mon Jul 1 10:13:35 2013 +0300
Committer: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Committed: Mon Jul 1 10:14:08 2013 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/wicket/request/UrlRenderer.java        | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/f4784c2a/wicket-request/src/main/java/org/apache/wicket/request/UrlRenderer.java
----------------------------------------------------------------------
diff --git a/wicket-request/src/main/java/org/apache/wicket/request/UrlRenderer.java b/wicket-request/src/main/java/org/apache/wicket/request/UrlRenderer.java
index 566833e..4ed6397 100644
--- a/wicket-request/src/main/java/org/apache/wicket/request/UrlRenderer.java
+++ b/wicket-request/src/main/java/org/apache/wicket/request/UrlRenderer.java
@@ -103,6 +103,7 @@ public class UrlRenderer
 			{
 				String relativeUrl = renderRelativeUrl(url);
 				Url relative = Url.parse(relativeUrl, url.getCharset());
+				relative.setHost(url.getHost());
 				relative.setPort(url.getPort());
 				relative.setProtocol(url.getProtocol());
 				renderedUrl = renderFullUrl(relative);


Mime
View raw message