[DRE-commits] r5614 - in trunk/redmine-plugin-botsfilter/debian: . patches source
Jérémy Lal
kapouer-guest at alioth.debian.org
Fri Jun 18 17:57:12 UTC 2010
Author: kapouer-guest
Date: 2010-06-18 17:57:11 +0000 (Fri, 18 Jun 2010)
New Revision: 5614
Added:
trunk/redmine-plugin-botsfilter/debian/patches/
trunk/redmine-plugin-botsfilter/debian/patches/allow_blank_user_agent.patch
trunk/redmine-plugin-botsfilter/debian/patches/series
trunk/redmine-plugin-botsfilter/debian/source/
trunk/redmine-plugin-botsfilter/debian/source/format
Modified:
trunk/redmine-plugin-botsfilter/debian/changelog
trunk/redmine-plugin-botsfilter/debian/control
Log:
Fix incompatibility with redmine 0.9.3-4, allow blank user agent.
Modified: trunk/redmine-plugin-botsfilter/debian/changelog
===================================================================
--- trunk/redmine-plugin-botsfilter/debian/changelog 2010-06-18 17:16:37 UTC (rev 5613)
+++ trunk/redmine-plugin-botsfilter/debian/changelog 2010-06-18 17:57:11 UTC (rev 5614)
@@ -1,3 +1,10 @@
+redmine-plugin-botsfilter (1.02-2) unstable; urgency=low
+
+ * Patch to allow a blank user agent. (Closes: #584431)
+ * Switch to 3.0 (quilt) source format.
+
+ -- Jérémy Lal <kapouer at melix.org> Fri, 18 Jun 2010 19:55:31 +0200
+
redmine-plugin-botsfilter (1.02-1) unstable; urgency=low
* Initial release (Closes: #550244)
Modified: trunk/redmine-plugin-botsfilter/debian/control
===================================================================
--- trunk/redmine-plugin-botsfilter/debian/control 2010-06-18 17:16:37 UTC (rev 5613)
+++ trunk/redmine-plugin-botsfilter/debian/control 2010-06-18 17:57:11 UTC (rev 5614)
@@ -11,7 +11,7 @@
Package: redmine-plugin-botsfilter
Architecture: any
-Depends: redmine (>= 0.9.3), ${misc:Depends}
+Depends: redmine (>= 0.9.4-3), ${misc:Depends}
Description: Redmine plugin to restrict common bots access
This plugin makes Redmine returns 403 Forbidden for user-agents
that are commonly known to be bots, when accessing :
Added: trunk/redmine-plugin-botsfilter/debian/patches/allow_blank_user_agent.patch
===================================================================
--- trunk/redmine-plugin-botsfilter/debian/patches/allow_blank_user_agent.patch (rev 0)
+++ trunk/redmine-plugin-botsfilter/debian/patches/allow_blank_user_agent.patch 2010-06-18 17:57:11 UTC (rev 5614)
@@ -0,0 +1,19 @@
+Description: Allow blank user agent
+ .
+ The person named in the Author field signed this changelog entry.
+Author: Jérémy Lal <kapouer at melix.org>
+Bug: http://www.redmine.org/issues/3480
+Bug-Debian: http://bugs.debian.org/584431
+
+--- redmine-plugin-botsfilter-1.02.orig/lib/bots_filter.rb
++++ redmine-plugin-botsfilter-1.02/lib/bots_filter.rb
+@@ -41,6 +41,9 @@ module RedmineBotsFilter
+ BOTS_USER_AGENT_RE = Regexp.new("(#{BOTS_USER_AGENT.collect {|a| Regexp.escape(a)}.join('|')})", Regexp::IGNORECASE)
+
+ def bot_request?
++ if request.user_agent.blank?
++ return true
++ end
+ request.user_agent.match(BOTS_USER_AGENT_RE)
+ end
+ end
Added: trunk/redmine-plugin-botsfilter/debian/patches/series
===================================================================
--- trunk/redmine-plugin-botsfilter/debian/patches/series (rev 0)
+++ trunk/redmine-plugin-botsfilter/debian/patches/series 2010-06-18 17:57:11 UTC (rev 5614)
@@ -0,0 +1 @@
+allow_blank_user_agent.patch
Added: trunk/redmine-plugin-botsfilter/debian/source/format
===================================================================
--- trunk/redmine-plugin-botsfilter/debian/source/format (rev 0)
+++ trunk/redmine-plugin-botsfilter/debian/source/format 2010-06-18 17:57:11 UTC (rev 5614)
@@ -0,0 +1 @@
+3.0 (quilt)
More information about the Pkg-ruby-extras-commits
mailing list