From af8157130a78f0778af67ebf3ed51042da225d00 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Sun, 30 Nov 2008 17:44:21 -0600 Subject: [PATCH] Clarify form_spam_protection Error Message You need cookies enabled, too (since Instiki stores session data in a cookie). --- vendor/plugins/form_spam_protection/lib/form_spam_protection.rb | 2 +- .../form_spam_protection/test/form_spam_protection_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/plugins/form_spam_protection/lib/form_spam_protection.rb b/vendor/plugins/form_spam_protection/lib/form_spam_protection.rb index 783af545..b85aabd5 100644 --- a/vendor/plugins/form_spam_protection/lib/form_spam_protection.rb +++ b/vendor/plugins/form_spam_protection/lib/form_spam_protection.rb @@ -23,7 +23,7 @@ module FormSpamProtection end end else - render :text => "You must have Javascript on to submit this form.", :layout => 'error', :status => 403 + render :text => "You must have Javascript on, and cookies enabled, to submit this form.", :layout => 'error', :status => 403 return false end end diff --git a/vendor/plugins/form_spam_protection/test/form_spam_protection_test.rb b/vendor/plugins/form_spam_protection/test/form_spam_protection_test.rb index b9744607..17d0862e 100644 --- a/vendor/plugins/form_spam_protection/test/form_spam_protection_test.rb +++ b/vendor/plugins/form_spam_protection/test/form_spam_protection_test.rb @@ -16,7 +16,7 @@ class FormSpamProtectionTest < Test::Unit::TestCase def test_index_form_handler_is_protected post :index assert_response 403 - assert_equal "You must have Javascript on to submit this form.", @response.body + assert_equal "You must have Javascript on, and cookies enabled, to submit this form.", @response.body get :index form_key_tag = assert_select('code input[type="hidden"]').first