From 11c778823943f327d865a639116f56e0cc6383fd Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Mon, 4 Nov 2019 20:04:16 +0000 Subject: [PATCH] Fix CSRF token addition on import project form --- main/webapp/modules/core/scripts/index/import-project-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/webapp/modules/core/scripts/index/import-project-ui.js b/main/webapp/modules/core/scripts/index/import-project-ui.js index 8535cec5f..30819980b 100644 --- a/main/webapp/modules/core/scripts/index/import-project-ui.js +++ b/main/webapp/modules/core/scripts/index/import-project-ui.js @@ -35,7 +35,7 @@ Refine.ImportProjectUI = function(elmt) { elmt.html(DOM.loadHTML("core", "scripts/index/import-project-ui.html")); Refine.wrapCSRF(function(token) { - elmt.attr('action', "command/core/import-project?" + $.param({ csrf_token: token})); + $('#project-upload-form').attr('action', "command/core/import-project?" + $.param({ csrf_token: token})); }); this._elmt = elmt;