diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-02-28 10:43:24 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-02-28 15:16:17 +0000 |
| commit | 5e5fc53aaa0e5af144c8c7069ff4e20f950a20fc (patch) | |
| tree | 6fbf9d06bea7c751b60585909cf37301a614b694 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 0d737343259eab8595e61005400eb315a339ca20 (diff) | |
[FIX] im_livechat: prevent crash in rule matching if URL not set
The URL might not be set because it comes from `referer`, in that case match the
first rule with no `regex_url`.
It crashes before this commit because `re.search()` is expecting a string and
`headers.get()` is defaulting to `None`.
opw-2205202
closes odoo/odoo#46593
X-original-commit: e2f8caf07b2f749935df9184ded738cc1c482423
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
