Skip to content
Permalink
Browse files

Merge pull request #2131 from jglick/requiresConfirmation-post-contex…

…t-menu-JENKINS-18032

[JENKINS-18032] Fix Delete Project from context menu when using CSRF defense
  • Loading branch information...
daniel-beck committed Mar 16, 2016
2 parents 35ec989 + 57fced9 commit 37111bf12e5038fcd240bbefb3aa9474e45585c2
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/src/main/resources/lib/layout/breadcrumbs.js
@@ -61,6 +61,9 @@ var breadcrumbs = (function() {
var form = document.createElement('form');
form.setAttribute('method', cfg.post ? 'POST' : 'GET');
form.setAttribute('action', cfg.url);
if (cfg.post) {
crumb.appendToForm(form);
}
document.body.appendChild(form);
form.submit();
}

0 comments on commit 37111bf

Please sign in to comment.
You can’t perform that action at this time.