incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/2] git commit: [#5359] only add _session_id field to POST forms; GET doesn't need it
Date Wed, 28 Nov 2012 19:44:22 GMT
[#5359] only add _session_id field to POST forms; GET doesn't need it


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/f15c4577
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/f15c4577
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/f15c4577

Branch: refs/heads/db/5359
Commit: f15c4577ab12d2dd0b261051501302f658aa6e08
Parents: 7eb7956
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Wed Nov 28 19:43:55 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Wed Nov 28 19:43:55 2012 +0000

----------------------------------------------------------------------
 Allura/allura/public/nf/js/allura-base.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f15c4577/Allura/allura/public/nf/js/allura-base.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/allura-base.js b/Allura/allura/public/nf/js/allura-base.js
index cf944c0..ef60650 100644
--- a/Allura/allura/public/nf/js/allura-base.js
+++ b/Allura/allura/public/nf/js/allura-base.js
@@ -188,5 +188,5 @@ $(function(){
 
     // Provide CSRF protection
     var cval = $.cookie('_session_id');
-    $('form').append('<input name="_session_id" type="hidden" value="'+cval+'">');
+    $('form[method=post]').append('<input name="_session_id" type="hidden" value="'+cval+'">');
 });


Mime
View raw message