mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-30 01:09:29 +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:
@@ -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