mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
_merge_csp: Avoid duplicate values
This commit is contained in:
@@ -214,7 +214,7 @@ def _render_csp(h):
|
||||
def _merge_csp(a, b):
|
||||
for k, v in a.items():
|
||||
if k in b:
|
||||
a[k] += b[k]
|
||||
a[k] += [i for i in b[k] if i not in a[k]]
|
||||
|
||||
for k, v in b.items():
|
||||
if k not in a:
|
||||
|
||||
Reference in New Issue
Block a user