Fix another problem with Sakai's href attribute handling
This commit is contained in:
parent
c942afb2b0
commit
9e8d822b90
1 changed files with 8 additions and 6 deletions
|
@ -868,17 +868,19 @@ Zotero.Sync.Storage = new function () {
|
|||
href = href.path;
|
||||
}
|
||||
|
||||
if (href.indexOf(path) == -1) {
|
||||
if (href.indexOf(path) == -1
|
||||
// Try URL-encoded as well, in case there's a '~' or similar
|
||||
// character in the URL and the server (e.g., Sakai) is
|
||||
// encoding the value
|
||||
&& decodeURIComponent(href).indexOf(path) == -1) {
|
||||
_error("DAV:href '" + href
|
||||
+ "' does not begin with path '" + path + "' in " + funcName);
|
||||
}
|
||||
|
||||
// Skip root URI
|
||||
//
|
||||
// Try URL-encoded as well, in case there's a '~' or similar
|
||||
// character in the URL and the server (e.g., Sakai) is
|
||||
// encoding the value
|
||||
if (href == path || decodeURIComponent(href) == path) {
|
||||
if (href == path
|
||||
// Try URL-encoded as well, as above
|
||||
|| decodeURIComponent(href) == path) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue