Fix error message in WebDAV purgeOrphanedStorageFiles()
This commit is contained in:
parent
39bfeac86c
commit
83fe445f8f
1 changed files with 1 additions and 4 deletions
|
@ -1034,10 +1034,7 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = {
|
||||||
// character in the URL and the server (e.g., Sakai) is
|
// character in the URL and the server (e.g., Sakai) is
|
||||||
// encoding the value
|
// encoding the value
|
||||||
&& decodeURIComponent(href).indexOf(path) == -1) {
|
&& decodeURIComponent(href).indexOf(path) == -1) {
|
||||||
throw new Error(
|
throw new Error(`DAV:href '${href}' does not begin with path '${path}'`);
|
||||||
"DAV:href '" + href + "' does not begin with path '"
|
|
||||||
+ path + "' in " + funcName
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var matches = href.match(/[^\/]+$/);
|
var matches = href.match(/[^\/]+$/);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue