You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by zh...@apache.org on 2008/03/12 04:04:14 UTC

svn commit: r636187 - /incubator/shindig/trunk/features/rpc/rpc.js

Author: zhen
Date: Tue Mar 11 20:04:13 2008
New Revision: 636187

URL: http://svn.apache.org/viewvc?rev=636187&view=rev
Log:
Ugly escaping bug fix for legacy IFPC calls.


Modified:
    incubator/shindig/trunk/features/rpc/rpc.js

Modified: incubator/shindig/trunk/features/rpc/rpc.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/rpc/rpc.js?rev=636187&r1=636186&r2=636187&view=diff
==============================================================================
--- incubator/shindig/trunk/features/rpc/rpc.js (original)
+++ incubator/shindig/trunk/features/rpc/rpc.js Tue Mar 11 20:04:13 2008
@@ -273,10 +273,9 @@
         var src;
         if (useLegacyProtocol[targetId]) {
           // #iframe_id&callId&num_packets&packet_num&block_of_data
-          var legacyData = [from, serviceName, null, null, from].concat(
-              Array.prototype.slice.call(arguments, 3));
-          src = [relay, '#', from, '&', callId, '&1&0&',
-                 encodeLegacyData(legacyData)].join('');
+          src = [relay, '#', encodeLegacyData([from, callId, 1, 0,
+                 encodeLegacyData([from, serviceName, null, null].concat(
+                 Array.prototype.slice.call(arguments, 3)))])].join('');
         } else {
           // # targetId & sourceId@callId & packetNum & packetId & packetData
           src = [relay, '#', targetId, '&', from, '@', callId,