Remove &render=3 from QR code

Related: #488
This commit is contained in:
Florian Festi 2023-03-07 19:31:52 +01:00
parent 9a5410983d
commit f0bd44a81c
1 changed files with 2 additions and 1 deletions

View File

@ -656,7 +656,8 @@ class BServer:
qr_format="png"
fn = (box.__class__.__name__)
start_response(status, http_headers)
qrcode = get_qrcode(self.getURL(environ), qr_format)
url = re.sub(r"&render=[^&]*", "" ,self.getURL(environ))
qrcode = get_qrcode(url, qr_format)
return (qrcode,)
if box.format != "svg" or render == "2":