Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed issue with pages not rendering

  • Loading branch information...
commit 02761badf28c307b9dddb8f39ddd809722d2cc39 1 parent 0369f9d
@mikevalstar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/compiler.js
View
2  lib/compiler.js
@@ -18,7 +18,7 @@ var Compiler = module.exports = {
// compile a simple page
var output_name = (Page.URI == '') ? 'index.html' : Page.URI;
- if(Page.URI.indexOf('..') !== false){
+ if(Page.URI.indexOf('..') >= 0){
console.info('Bad page name: Security: ' + Page.URI);
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.