diff --git a/public/history.txt b/public/history.txt index 80201f579..1470e5e54 100644 --- a/public/history.txt +++ b/public/history.txt @@ -1,6 +1,8 @@ 0.8.1 / 2013-07-20 ================== + * (added) Футер страницы + * (fixed) Роли в информации о пользователе *** Полный список изменений: https://github.com/klimashkin/pastvu/compare/0.8.0...0.8.1 diff --git a/public/js/module/user/photoUpload.js b/public/js/module/user/photoUpload.js index 079247697..58d6c09d7 100644 --- a/public/js/module/user/photoUpload.js +++ b/public/js/module/user/photoUpload.js @@ -116,7 +116,7 @@ define(['underscore', 'Browser', 'Utils', 'socket', 'Params', 'knockout', 'knock // Initialize the jQuery File Upload widget: this.$fileupload.fileupload(); this.$fileupload.fileupload('option', { - url: 'http://' + P.settings.server.domain() + ':' + P.settings.server.uport() + '/', + url: 'http://' + P.settings.server.domain() + ':' + P.settings.server.uport() + '/upload', dropZone: $(document), //this.$dom.find('.addfiles_area'), pasteZone: $(document), singleFileUploads: true, diff --git a/uploader.js b/uploader.js index a58467f3c..7d3e65c64 100644 --- a/uploader.js +++ b/uploader.js @@ -130,6 +130,11 @@ var Utils = require('./commons/Utils.js'), .parse(req); }, serve = function (req, res) { + if (req.url !== '/upload') { + res.statusCode = 403; + res.end(); + return; + } setAccessControlHeaders(res); switch (req.method) {