mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-02 10:58:01 +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:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user