treat paths beginning with '/' as absolute

This commit is contained in:
Dan Mills 2008-06-17 09:51:02 +09:00
parent f8a841ee5e
commit 5c196a641a

View File

@ -121,6 +121,7 @@ DAVCollection.prototype = {
this._log.debug(op + " request for " + (path? path : 'root folder')); this._log.debug(op + " request for " + (path? path : 'root folder'));
if (!path || path[0] != '/')
path = this._defaultPrefix + path; path = this._defaultPrefix + path;
let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest); let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest);