mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: avoid non local redirect
The goal of this feature is to redirect to the build
This commit is contained in:
parent
383352d88e
commit
bf2528dbd0
@ -83,6 +83,7 @@ class Runbot(Controller):
|
||||
'/runbot/submit'
|
||||
], type='http', auth="public", methods=['GET', 'POST'], csrf=False)
|
||||
def submit(self, more=False, redirect='/', keep_search=False, category=False, filter_mode=False, update_triggers=False, **kwargs):
|
||||
assert redirect.startswith('/runbot/')
|
||||
response = werkzeug.utils.redirect(redirect)
|
||||
response.set_cookie('more', '1' if more else '0')
|
||||
response.set_cookie('keep_search', '1' if keep_search else '0')
|
||||
|
Loading…
Reference in New Issue
Block a user