From 5c196a641a16cb50defc22e97fcac686f42b3fd1 Mon Sep 17 00:00:00 2001 From: Dan Mills Date: Tue, 17 Jun 2008 09:51:02 +0900 Subject: [PATCH] treat paths beginning with '/' as absolute --- services/sync/modules/dav.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/sync/modules/dav.js b/services/sync/modules/dav.js index d6f1961a476..91079a75824 100644 --- a/services/sync/modules/dav.js +++ b/services/sync/modules/dav.js @@ -121,7 +121,8 @@ DAVCollection.prototype = { this._log.debug(op + " request for " + (path? path : 'root folder')); - path = this._defaultPrefix + path; + if (!path || path[0] != '/') + path = this._defaultPrefix + path; let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest);