diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-01-28 16:29:09 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-01-28 16:29:09 +0100 |
commit | 46efdacd6d3d5c7560d8f956e2339c36157f7c89 (patch) | |
tree | 73fbf5c69c9dd80b2e9df3c476dce922a3f60cca | |
parent | a063cc1a53bede0a869b184f5ec4793ce300ae01 (diff) | |
download | gitbook-46efdacd6d3d5c7560d8f956e2339c36157f7c89.zip gitbook-46efdacd6d3d5c7560d8f956e2339c36157f7c89.tar.gz gitbook-46efdacd6d3d5c7560d8f956e2339c36157f7c89.tar.bz2 |
Fix book.resolve
-rw-r--r-- | lib/book.js | 2 |
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'; |