mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +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):
|
def _merge_csp(a, b):
|
||||||
for k, v in a.items():
|
for k, v in a.items():
|
||||||
if k in b:
|
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():
|
for k, v in b.items():
|
||||||
if k not in a:
|
if k not in a:
|
||||||
|
|||||||
Reference in New Issue
Block a user