mirror of
https://github.com/zotero/zotero.git
synced 2026-09-17 23:51:18 +00:00
Fix NS_ERROR_MALFORMED_URI if WebDAV URL has leading or trailing space
This commit is contained in:
parent
52c219c8b9
commit
04b87e4db7
1 changed files with 1 additions and 1 deletions
|
|
@ -458,7 +458,7 @@ Zotero_Preferences.Sync = {
|
|||
|
||||
onStorageSettingsChange: Zotero.Promise.coroutine(function* () {
|
||||
// Clean URL
|
||||
Zotero.Prefs.set('sync.storage.url', Zotero.Prefs.get('sync.storage.url')
|
||||
Zotero.Prefs.set('sync.storage.url', Zotero.Prefs.get('sync.storage.url').trim()
|
||||
.replace(/(^https?:\/\/|\/zotero\/?$|\/$)/g, ''));
|
||||
|
||||
var oldProtocol = Zotero.Prefs.get('sync.storage.protocol');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue