summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2015-04-24 12:31:42 +0200
committerJeremy Kersten <jke@odoo.com>2015-04-24 12:31:42 +0200
commit6ced9780e9b15f1dd9f51982acd10ded740f42e6 (patch)
tree6b1d1ab15fc64348748436a8d07fd9e5acd0a611 /addons
parentf134387531fbffd1101f025dae1187c8bfd71ae3 (diff)
[IMP] ir_http: add facebookinternalhit in the list of bot.
Avoid redirect in en_US if lang is installed when a link is added via Facebook
Diffstat (limited to 'addons')
-rw-r--r--addons/website/models/ir_http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/models/ir_http.py b/addons/website/models/ir_http.py
index a5119e40760..bc6b5200853 100644
--- a/addons/website/models/ir_http.py
+++ b/addons/website/models/ir_http.py
@@ -45,7 +45,7 @@ class ir_http(orm.AbstractModel):
else:
request.uid = request.session.uid
- bots = "bot|crawl|slurp|spider|curl|wget".split("|")
+ bots = "bot|crawl|slurp|spider|curl|wget|facebookexternalhit".split("|")
def is_a_bot(self):
# We don't use regexp and ustr voluntarily
# timeit has been done to check the optimum method