Changeset 12905


Ignore:
Timestamp:
02/28/09 10:59:59 (3 years ago)
Author:
sys
Message:

debug encoding uri (loadFromAgent)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Cms/components/scHttpDataProvider.js

    r12861 r12905  
    420420         
    421421        getAgentUrl : function(pIdInstance, pUrlDialogAndParams){ 
    422                 return this.fUrlAgent + pIdInstance + pUrlDialogAndParams; 
     422                return this.fUrlAgent + encodeURIComponent(pIdInstance) + pUrlDialogAndParams; 
    423423        }, 
    424424 
     
    585585                try { 
    586586                        //debug("loadFromAgent="+pUrlDialogAndParams); 
    587                         var vUrl = this.fUrlAgent + pIdInstance + pUrlDialogAndParams; 
     587                        var vUrl = this.fUrlAgent + encodeURIComponent(pIdInstance) + pUrlDialogAndParams; 
    588588                        var vReq = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Components.interfaces.nsIXMLHttpRequest); 
    589589                        vReq.open("GET", vUrl, true, this.fUser.fAccount, this.fUser.fPassword); 
Note: See TracChangeset for help on using the changeset viewer.