diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml index 61ed7eb..2263fd4 100644 --- a/argocd/deployment.yaml +++ b/argocd/deployment.yaml @@ -25,7 +25,7 @@ spec: mountPath: /data containers: - name: web - image: git.baumann.gr/adebaumann/vui:0.958-comments-XSS + image: git.baumann.gr/adebaumann/vui:0.959 imagePullPolicy: Always ports: - containerPort: 8000 diff --git a/dokumente/views.py b/dokumente/views.py index 4a0835c..a413894 100644 --- a/dokumente/views.py +++ b/dokumente/views.py @@ -326,10 +326,10 @@ def add_vorgabe_comment(request, vorgabe_id): 'is_own': True } }) - response['Content-Security-Policy'] = "default-src 'self'" - response['X-Content-Type-Options'] = 'nosniff' - return response - + response['Content-Security-Policy'] = "default-src 'self'" + response['X-Content-Type-Options'] = 'nosniff' + return response + except json.JSONDecodeError: response = JsonResponse({'error': 'Ungültige Daten'}, status=400) response['Content-Security-Policy'] = "default-src 'self'" diff --git a/pages/templates/base.html b/pages/templates/base.html index 996daa6..27b84a4 100644 --- a/pages/templates/base.html +++ b/pages/templates/base.html @@ -215,7 +215,7 @@
Version {{ version|default:"0.958-comments-XSS" }}
+Version {{ version|default:"0.959" }}