Monotone-Parent: 5cd1857ccc05c9d83c69d13d242b67c166b4a861

Monotone-Revision: 75ec663b4b26859e635b90a350146642970dc3c2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-19T16:31:29
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-04-19 16:31:29 +00:00
parent 8c9913539f
commit a693ebedf4
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2010-04-19 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/generic.js (URLForFolderID): avoid double
slashes in the URL returned for personal folders.
2010-04-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoCalendarComponent.m

View File

@@ -80,8 +80,13 @@ function URLForFolderID(folderID) {
url += '/';
url += folderInfos[1];
}
else
url = ApplicationBaseURL + encodeURI(folderInfos[0]);
else {
var folderInfo = folderInfos[0];
if (ApplicationBaseURL.endsWith('/')
&& folderInfo.startsWith('/'))
folderInfo = folderInfo.substr(1);
url = ApplicationBaseURL + encodeURI(folderInfo);
}
if (url[url.length-1] == '/')
url = url.substr(0, url.length-1);