You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/04/09 16:27:18 UTC

git commit: [#2643] greatly increase antispam time window, to allow longer time for people to compose messages

Updated Branches:
  refs/heads/master 2dfbcfb25 -> 7041d1a1e


[#2643] greatly increase antispam time window, to allow longer time for people to compose messages


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

Branch: refs/heads/master
Commit: 7041d1a1e2c9727aee0e3cb51c78d47c430c0160
Parents: 2dfbcfb
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Tue Apr 9 14:04:15 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Tue Apr 9 14:04:15 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/utils.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7041d1a1/Allura/allura/lib/utils.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/utils.py b/Allura/allura/lib/utils.py
index 6e2d3b8..9bf6cd8 100644
--- a/Allura/allura/lib/utils.py
+++ b/Allura/allura/lib/utils.py
@@ -294,8 +294,8 @@ class AntiSpam(object):
             if now is None: now = time.time()
             if obj.timestamp > now + 5:
                 raise ValueError, 'Post from the future'
-            if now - obj.timestamp > 60*60:
-                raise ValueError, 'Post from the 1hr+ past'
+            if now - obj.timestamp > 24*60*60:
+                raise ValueError, 'Post from the distant past'
             if obj.spinner != obj.make_spinner(obj.timestamp):
                 raise ValueError, 'Bad spinner value'
             for k in new_params.keys():