From: Mike S. <ms...@us...> - 2007-09-26 15:48:00
|
Update of /cvsroot/wonder/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28201/Sources/er/extensions Modified Files: ERXMutableURL.java Log Message: support "keyless" query parameters Index: ERXMutableURL.java =================================================================== RCS file: /cvsroot/wonder/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXMutableURL.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ERXMutableURL.java 24 Aug 2007 01:48:32 -0000 1.2 --- ERXMutableURL.java 26 Sep 2007 15:35:45 -0000 1.3 *************** *** 518,522 **** sb.append(URLEncoder.encode(key, "UTF-8")); if (value != null) { ! sb.append('='); sb.append(URLEncoder.encode(value, "UTF-8")); } --- 518,524 ---- sb.append(URLEncoder.encode(key, "UTF-8")); if (value != null) { ! if (key.length() > 0) { ! sb.append('='); ! } sb.append(URLEncoder.encode(value, "UTF-8")); } |