mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-24 23:52:43 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user