moved the line to make sure we're not accidentally prepending "&"
This commit is contained in:
Scott Battaglia 2009-11-24 15:19:15 +00:00
parent ff84c43b45
commit 6459137bb2
1 changed files with 1 additions and 1 deletions

View File

@ -111,12 +111,12 @@ public abstract class AbstractUrlBasedTicketValidator implements TicketValidator
buffer.append(suffix);
for (final Iterator iter = urlParameters.entrySet().iterator(); iter.hasNext();) {
buffer.append(i++ == 0 ? "?" : "&");
final Map.Entry entry = (Map.Entry) iter.next();
final String key = (String) entry.getKey();
final String value = (String) entry.getValue();
if (value != null) {
buffer.append(i++ == 0 ? "?" : "&");
buffer.append(key);
buffer.append("=");
buffer.append(value);