mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-02 14:37:09 +00:00
Adds $tw.utils.decodeURISafe and $tw.utils.decodeURIComponentSafe (#5999)
* call self.displayError
* Revert "call self.displayError"
This reverts commit 5d599aa979.
* fixes decodeURI & decodeURIComponent
This commit is contained in:
@@ -346,8 +346,8 @@ TiddlyWebAdaptor.prototype.parseEtag = function(etag) {
|
||||
return null;
|
||||
} else {
|
||||
return {
|
||||
bag: decodeURIComponent(etag.substring(1,firstSlash)),
|
||||
title: decodeURIComponent(etag.substring(firstSlash + 1,lastSlash)),
|
||||
bag: $tw.utils.decodeURIComponentSafe(etag.substring(1,firstSlash)),
|
||||
title: $tw.utils.decodeURIComponentSafe(etag.substring(firstSlash + 1,lastSlash)),
|
||||
revision: etag.substring(lastSlash + 1,colon)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user