mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
Fix importing/upgrading encrypted single file wikis
The problem was that v5.2.0 trimmed the whitespace from $:/core/templates/store.area.template.html which we'd previously been relying on during the import. This change still allows v5.2.2 to import encrypted pre-v5.2.0 wikis Fixes #6330
This commit is contained in:
parent
54cfda76ee
commit
60187dc59e
@ -21,7 +21,7 @@ exports.extractEncryptedStoreArea = function(text) {
|
|||||||
if(encryptedStoreAreaStart !== -1) {
|
if(encryptedStoreAreaStart !== -1) {
|
||||||
var encryptedStoreAreaEnd = text.indexOf("</pre>",encryptedStoreAreaStart);
|
var encryptedStoreAreaEnd = text.indexOf("</pre>",encryptedStoreAreaStart);
|
||||||
if(encryptedStoreAreaEnd !== -1) {
|
if(encryptedStoreAreaEnd !== -1) {
|
||||||
return $tw.utils.htmlDecode(text.substring(encryptedStoreAreaStart + encryptedStoreAreaStartMarker.length,encryptedStoreAreaEnd-1));
|
return $tw.utils.htmlDecode(text.substring(encryptedStoreAreaStart + encryptedStoreAreaStartMarker.length,encryptedStoreAreaEnd));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user