Author: mgrigorov
Date: Wed Feb 23 08:46:32 2011
New Revision: 1073641
URL: http://svn.apache.org/viewvc?rev=1073641&view=rev
Log:
WICKET-3469 Referrer Leaking with ExternalLink
Add a javadoc explaining the possible problem.
Modified:
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java
Modified:
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java?rev=1073641&r1=1073640&r2=1073641&view=diff
==============================================================================
---
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java
(original)
+++
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java
Wed Feb 23 08:46:32 2011
@@ -20,11 +20,20 @@ import org.apache.wicket.markup.Componen
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.request.cycle.RequestCycle;
+import org.apache.wicket.request.flow.RedirectToUrlException;
import org.apache.wicket.util.string.UrlUtils;
/**
+ * <p>
* A simple anchor link (<a href="http://url">) pointing to any URL.
Usually this is used for
* links to destinations outside of Wicket.
+ * </p>
+ *
+ * <p>
+ * <strong>Note</strong>: in the case when the support for cookies in the
browser is disabled the
+ * user's jsessionid will leak in the 'Referrer' header after clicking this
link. If this is a
+ * problem for the application then better use {@link Link} which redirects to
the new URL using
+ * {@link RedirectToUrlException}.
*
* @author Juergen Donnerstag
*/