allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [20/29] allura git commit: [#7685] ticket:802 Require POST for repository subscription
Date Mon, 13 Jul 2015 10:44:24 GMT
[#7685] ticket:802 Require POST for repository subscription


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

Branch: refs/heads/ib/7685
Commit: d08f8147735f0ce46587766e5fb9ffb80c7a2212
Parents: dc19b4b
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Thu Jul 2 14:29:12 2015 +0300
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Fri Jul 10 15:59:00 2015 +0300

----------------------------------------------------------------------
 Allura/allura/controllers/repository.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/d08f8147/Allura/allura/controllers/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/repository.py b/Allura/allura/controllers/repository.py
index f8b0834..0178723 100644
--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -689,6 +689,7 @@ class TreeBrowser(BaseController, DispatchIndex):
             self), rest
 
     @expose()
+    @require_post()
     @validate(subscribe_form)
     def subscribe(self, subscribe=None, unsubscribe=None, **kw):
         if subscribe:


Mime
View raw message