From 4ac73f1a791524b6418ee70763dcd7fe3bbffbab Mon Sep 17 00:00:00 2001 From: calle <93376500+callebtc@users.noreply.github.com> Date: Mon, 15 Aug 2022 00:20:57 +0200 Subject: [PATCH] Lnurlp/url_validation_fix (#883) * dont assume field * fix https check --- lnbits/extensions/lnurlp/views_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/extensions/lnurlp/views_api.py b/lnbits/extensions/lnurlp/views_api.py index f4ca505e2..6a8a724b1 100644 --- a/lnbits/extensions/lnurlp/views_api.py +++ b/lnbits/extensions/lnurlp/views_api.py @@ -96,7 +96,7 @@ async def api_link_create_or_update( data.min *= data.fiat_base_multiplier data.max *= data.fiat_base_multiplier - if data.success_url is not None and data.success_url.startswith("https://"): + if data.success_url is not None and not data.success_url.startswith("https://"): raise HTTPException( detail="Success URL must be secure https://...", status_code=HTTPStatus.BAD_REQUEST,