1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +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:
Jeremy Ruston 2012-11-06 14:10:55 +00:00
parent 90d3db1baa
commit b81b2c0c63

View File

@ -216,7 +216,7 @@ exports.getTiddlers = function(sortField,excludeTag) {
sortField = sortField || "title";
var tiddlers = [], t, titles = [];
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]);
}
}