Skip to content

Commit

Permalink
Protection against tiddler title of 'undefined'.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbudden committed Jan 26, 2012
1 parent 2df6020 commit 5d3c8a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/LoaderSaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ LoaderBase.prototype.loadTiddler = function(store,node,tiddlers)
var title = this.getTitle(store,node);
if(safeMode && store.isShadowTiddler(title))
return;
if (title=="undefined")
title = "Undefined";
if(title) {
var tiddler = store.createTiddler(title);
this.internalizeTiddler(store,tiddler,title,node);
Expand Down

0 comments on commit 5d3c8a4

Please sign in to comment.