From 1ce14dbe6af78956b4f158e0cdc3b49a211ad104 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 14 May 2014 13:58:34 +0200 Subject: [PATCH] [FIX] survey route that is only accessed with POST verb --- addons/survey/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/controllers/main.py b/addons/survey/controllers/main.py index 0e708d96f43..2f65d92cd4c 100644 --- a/addons/survey/controllers/main.py +++ b/addons/survey/controllers/main.py @@ -234,7 +234,7 @@ class WebsiteSurvey(http.Controller): # AJAX submission of a page @http.route(['/survey/submit/'], - type='http', auth='public', multilang=True, website=True) + type='http', methods=['POST'], auth='public', multilang=True, website=True) def submit(self, survey, **post): _logger.debug('Incoming data: %s', post) page_id = int(post['page_id'])