Merge #335: reject invalid QR code requests before rendering

This commit is contained in:
GPT on behalf of DHH
2026-10-08 11:43:27 +02:00
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -7,5 +7,7 @@ class QrCodeController < ApplicationController
expires_in 1.year, public: true
render plain: qr_code, content_type: "image/svg+xml"
rescue ArgumentError, RQRCodeCore::QRCodeRunTimeError
head :bad_request
end
end