From 04b87e4db7c00a4f3773dcd625e4e60665c0fd54 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 30 Nov 2023 02:47:36 -0500 Subject: [PATCH] Fix NS_ERROR_MALFORMED_URI if WebDAV URL has leading or trailing space --- chrome/content/zotero/preferences/preferences_sync.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/preferences/preferences_sync.jsx b/chrome/content/zotero/preferences/preferences_sync.jsx index 0314317ce8..edbef75562 100644 --- a/chrome/content/zotero/preferences/preferences_sync.jsx +++ b/chrome/content/zotero/preferences/preferences_sync.jsx @@ -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');