projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7128116
)
[FIX] auth_oauth: decorator @fragment_to_query_string must redirect to same route
author
Christophe Simonis
<chs@openerp.com>
Tue, 11 Feb 2014 14:55:29 +0000
(15:55 +0100)
committer
Christophe Simonis
<chs@openerp.com>
Tue, 11 Feb 2014 14:55:29 +0000
(15:55 +0100)
bzr revid: chs@openerp.com-
20140211145529
-cp1rhf3hbhvq4sg4
addons/auth_oauth/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/auth_oauth/controllers/main.py
b/addons/auth_oauth/controllers/main.py
index
e660fd8
..
53a6ffd
100644
(file)
--- a/
addons/auth_oauth/controllers/main.py
+++ b/
addons/auth_oauth/controllers/main.py
@@
-25,7
+25,7
@@
def fragment_to_query_string(func):
return """<html><head><script>
var l = window.location;
var q = l.hash.substring(1);
- var r = '/' + l.search;
+ var r = l.pathname + l.search;
if(q.length !== 0) {
var s = l.search ? (l.search === '?' ? '' : '&') : '?';
r = l.pathname + l.search + s + q;