Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha2
-
Fix Version/s: 2.0-Alpha3
-
Component/s: Java Client
-
Labels:None
-
Environment:n/a
Description
in http.js:
appendToURI(parameters,uri) doesn't check if the uri already has parameters and will create a uri that includes multiple '?' characters, breaking the parameters
appendToURI(parameters,uri) doesn't check if the uri already has parameters and will create a uri that includes multiple '?' characters, breaking the parameters
Issue Links
- blocks
-
PUSH-46 ICEchat JSP version
-
- Closed
-
recommended patch
Index: /home/philip/workspace/ICEpush/core/src/main/javascript/lib/http.js
===================================================================
— /home/philip/workspace/ICEpush/core/src/main/javascript/lib/http.js (revision 20781)
+++ /home/philip/workspace/ICEpush/core/src/main/javascript/lib/http.js (working copy)
@@ -73,7 +73,7 @@
method(appendToURI, function(self, uri) {
{ - return uri + '?' + asURIEncodedString(self); + return uri + ( uri.indexOf('?') == -1 ? '?' : '&' ) + asURIEncodedString(self); }if (not(isEmpty(parameters)))
else
{ return uri; }