mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-03 20:59:09 +00:00
Fixed problem with tiddler hashmap handling
We need to check hasOwnProperty to avoid problems with tiddlers called eg "__proto__". There are more changes like this to come
This commit is contained in:
parent
90d3db1baa
commit
b81b2c0c63
@ -216,7 +216,7 @@ exports.getTiddlers = function(sortField,excludeTag) {
|
|||||||
sortField = sortField || "title";
|
sortField = sortField || "title";
|
||||||
var tiddlers = [], t, titles = [];
|
var tiddlers = [], t, titles = [];
|
||||||
for(t in this.tiddlers) {
|
for(t in this.tiddlers) {
|
||||||
if(!this.tiddlers[t].isShadow) {
|
if($tw.utils.hop(this.tiddlers,t) && !this.tiddlers[t].isShadow) {
|
||||||
tiddlers.push(this.tiddlers[t]);
|
tiddlers.push(this.tiddlers[t]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user