muck-services 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/muck/entries_controller.rb +5 -2
- data/muck-services.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
@@ -63,8 +63,11 @@ class Muck::EntriesController < ApplicationController
|
|
63
63
|
|
64
64
|
def track_clicks
|
65
65
|
user_agent = request.env['HTTP_USER_AGENT']
|
66
|
-
|
67
|
-
|
66
|
+
if !/Googlebot/.match(user_agent)
|
67
|
+
redirect_to Entry.track_click(session, params[:id], request.env['HTTP_REFERER'], params[:target], request.env['HTTP_X_FORWARDED_FOR'], user_agent) and return
|
68
|
+
else
|
69
|
+
redirect_to '/' and return
|
70
|
+
end
|
68
71
|
end
|
69
72
|
|
70
73
|
def collections
|
data/muck-services.gemspec
CHANGED