summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/book.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/book.js b/lib/book.js
index 73a43ec..c211adf 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -99,7 +99,7 @@ Book.prototype.prepareConfig = function() {
// Resolve a path in the book source
// Enforce that the output path is in the scope
Book.prototype.resolve = function() {
- var filename = path.resolve.apply([this.root].concat(_.toArray(arguments)));
+ var filename = path.resolve.apply(path, [this.root].concat(_.toArray(arguments)));
if (!this.isFileInScope(filename)) {
var err = new Error('EACCESS: "' + filename + '" not in "' + this.root + '"');
err.code = 'EACCESS';