From 68134d38a320d5dc8f8cf7d73d1347d772f5440b Mon Sep 17 00:00:00 2001
From: Christophe Simonis <chs@odoo.com>
Date: Fri, 12 Dec 2014 14:59:58 +0100
Subject: [PATCH] [FIX] auth_oauth: ignore "debug" argument when converting
 fragment to query string

---
 addons/auth_oauth/controllers/main.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py
index e48aeebd8a5b..4efe64d1a984 100644
--- a/addons/auth_oauth/controllers/main.py
+++ b/addons/auth_oauth/controllers/main.py
@@ -24,6 +24,7 @@ _logger = logging.getLogger(__name__)
 def fragment_to_query_string(func):
     @functools.wraps(func)
     def wrapper(self, *a, **kw):
+        kw.pop('debug', False)
         if not kw:
             return """<html><head><script>
                 var l = window.location;
-- 
GitLab