diff options
Diffstat (limited to 'frontend.js')
-rw-r--r-- | frontend.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend.js b/frontend.js index 30b5457..8c3d4d6 100644 --- a/frontend.js +++ b/frontend.js @@ -14,7 +14,7 @@ exports.start = function(config) { slideset = req.params.id; model.getSlides(slideset, function(err, slides) { if(err) { throw err; } - fs.readFile(path.join(__dirname, config.dir, slides['template']) , function(err,data) { + fs.readFile(path.join(__dirname, config.rootDir, slides['template']) , function(err,data) { if(err) { res.end(body); } var body = data.toString(); var slideStr = ''; @@ -25,10 +25,10 @@ exports.start = function(config) { slideStr = slideStr +'<li><img src="/'+media+'">'; } if(slides['slides'][slide]['head'].length > 0) { - var head = sanitize(slides['slides'][slide]['head']).xss(); + var head = slides['slides'][slide]['head']; slideStr = slideStr+'<div class="slideDesc"><div class="slideHead">'+head+'</div>'; if(slides['slides'][slide]['text'].length > 0) { - var text = sanitize(slides['slides'][slide]['text']).xss(); + var text = slides['slides'][slide]['text']; slideStr = slideStr+'<div class="slideText">'+text+'</div>'; } slideStr = slideStr + '</div>'; |