allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/2] git commit: [#5359] only add _session_id field to POST forms; GET doesn't need it
Date Mon, 03 Dec 2012 15:40:57 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/5bb52b7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/5bb52b7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/5bb52b7f

Branch: refs/heads/master
Commit: 5bb52b7f595786cfe78c50262b2823a649316f93
Parents: 7bed302
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Wed Nov 28 19:43:55 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Mon Dec 3 15:40:32 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/5bb52b7f/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