mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-29 02:01:35 +02:00
lnurlp: fix success_url checking.
This commit is contained in:
@ -88,8 +88,11 @@ async def api_link_create_or_update(link_id=None):
|
||||
):
|
||||
return jsonify({"message": "Must use full satoshis."}), HTTPStatus.BAD_REQUEST
|
||||
|
||||
if g.data["success_url"][:8] != "https://":
|
||||
return jsonify({"message": "Success URL must be secure https://..."}), HTTPStatus.BAD_REQUEST
|
||||
if "success_url" in g.data and g.data["success_url"][:8] != "https://":
|
||||
return (
|
||||
jsonify({"message": "Success URL must be secure https://..."}),
|
||||
HTTPStatus.BAD_REQUEST,
|
||||
)
|
||||
|
||||
if link_id:
|
||||
link = await get_pay_link(link_id)
|
||||
|
Reference in New Issue
Block a user