Author: ivaynberg Date: Tue May 15 09:30:34 2007 New Revision: 538246 URL: http://svn.apache.org/viewvc?view=rev&rev=538246 Log: WICKET-571
Modified: incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java Modified: incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java?view=diff&rev=538246&r1=538245&r2=538246 ============================================================================== --- incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java (original) +++ incubator/wicket/branches/wicket-1.2.x/wicket/src/main/java/wicket/protocol/http/request/CryptedUrlWebRequestCodingStrategy.java Tue May 15 09:30:34 2007 @@ -429,7 +429,12 @@ { return null; } - return (String)this.parameterMap.get(key); + String[] params = (String[])this.parameterMap.get(key); + if (params==null||params.length==0) { + return null; + } else { + return params[0]; + } } /**