Try/except-error fixed
All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/vui) (push) Successful in 36s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/vui-data-loader) (push) Successful in 8s

This commit is contained in:
2025-11-27 23:57:35 +01:00
parent 7e89ffb6f1
commit db9bd92036
3 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ spec:
mountPath: /data mountPath: /data
containers: containers:
- name: web - name: web
image: git.baumann.gr/adebaumann/vui:0.958-comments-XSS image: git.baumann.gr/adebaumann/vui:0.959
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8000 - containerPort: 8000

View File

@@ -326,10 +326,10 @@ def add_vorgabe_comment(request, vorgabe_id):
'is_own': True 'is_own': True
} }
}) })
response['Content-Security-Policy'] = "default-src 'self'" response['Content-Security-Policy'] = "default-src 'self'"
response['X-Content-Type-Options'] = 'nosniff' response['X-Content-Type-Options'] = 'nosniff'
return response return response
except json.JSONDecodeError: except json.JSONDecodeError:
response = JsonResponse({'error': 'Ungültige Daten'}, status=400) response = JsonResponse({'error': 'Ungültige Daten'}, status=400)
response['Content-Security-Policy'] = "default-src 'self'" response['Content-Security-Policy'] = "default-src 'self'"

View File

@@ -215,7 +215,7 @@
</p> </p>
</div> </div>
<div class="col-sm-6 text-right"> <div class="col-sm-6 text-right">
<p class="text-muted">Version {{ version|default:"0.958-comments-XSS" }}</p> <p class="text-muted">Version {{ version|default:"0.959" }}</p>
</div> </div>
</div> </div>
</div> </div>