mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-13 12:33:14 +02:00
decode lnurl using strict functions
This commit is contained in:
parent
c561ae24d3
commit
863058ccb5
1 changed files with 1 additions and 2 deletions
|
|
@ -209,11 +209,10 @@ func (bot *TipBot) HandleLNURL(rawlnurl string) (string, lnurl.LNURLParams, erro
|
|||
return "", nil,
|
||||
fmt.Errorf("invalid bech32-encoded lnurl: " + rawlnurl)
|
||||
}
|
||||
rawurl, err = lnurl.LNURLDecode(lnurl_str)
|
||||
rawurl, err = lnurl.LNURLDecodeStrict(lnurl_str)
|
||||
if err != nil {
|
||||
return "", nil, err
|
||||
}
|
||||
|
||||
}
|
||||
log.Debug("[HandleLNURL] rawurl: ", rawurl)
|
||||
parsed, err := url.Parse(rawurl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue