ep_fileupload
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -12,3 +12,3 @@ var path = require('path'); | ||
args.app.get('/up/:filename(*)', function(req, res) { | ||
var url = req.params['filename'].replace(/\.\./g, '').split("?")[0]; | ||
var url = req.params.filename.replace(/\.\./g, '').split("?")[0]; | ||
var filePath = path.normalize(path.join(__dirname, "upload", url)); | ||
@@ -20,3 +20,3 @@ res.sendfile(filePath, { maxAge: exports.maxAge }); | ||
exports.eejsBlock_editbarMenuLeft = function (hook_name, args, cb) { | ||
args.content = args.content + eejs.require("ep_fileupload/templates/fileUploadEditbarButtons.ejs"); | ||
args.content = args.content + eejs.require("ep_fileupload/templates/fileUploadEditbarButtons.ejs", {}, module); | ||
return cb(); | ||
@@ -26,3 +26,3 @@ } | ||
exports.eejsBlock_scripts = function (hook_name, args, cb) { | ||
args.content = args.content + eejs.require("ep_fileupload/templates/fileUploadScripts.ejs"); | ||
args.content = args.content + eejs.require("ep_fileupload/templates/fileUploadScripts.ejs", {}, module); | ||
return cb(); | ||
@@ -32,4 +32,4 @@ } | ||
exports.eejsBlock_styles = function (hook_name, args, cb) { | ||
args.content = args.content + eejs.require("ep_fileupload/templates/fileUploadStyles.ejs"); | ||
args.content = args.content + eejs.require("ep_fileupload/templates/fileUploadStyles.ejs", {}, module); | ||
return cb(); | ||
} |
{ | ||
"name": "ep_fileupload", | ||
"description": "File upload", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "RedHog (Egil Moeller) <egil.moller@freecode.no>", | ||
@@ -6,0 +6,0 @@ "contributors": [], |
21255