mirror of
https://github.com/zotero/zotero.git
synced 2026-09-24 00:51:37 +00:00
In a newly created profile, we check whether another profile is using the default data directory, and if so, we create a new data directory named after the profile (e.g., "Zotero Work"). But on Windows, paths in prefs.js are stored with escaped backslaches (C:\\Users\\foo\\Zotero), so searching for the JS string with literal single backslashes (C:\Users\foo\Zotero) always failed, we would conclude that the default dir was unused, and we would reuse the existing database. To fix, escape backslashes in dataDir before the substring check. Mac/Linux paths have no backslashes so this is a no-op there. |
||
|---|---|---|
| .. | ||
| components | ||
| content | ||
| resource | ||
| tests | ||
| chrome.manifest | ||
| runtests.sh | ||