mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 19:03:25 +01:00
Merge pull request #8067
53be72c
make_uri disallows standalone payment ids (woodser)
This commit is contained in:
commit
3ed0cc6e20
@ -13728,13 +13728,9 @@ std::string wallet2::make_uri(const std::string &address, const std::string &pay
|
||||
|
||||
if (!payment_id.empty())
|
||||
{
|
||||
crypto::hash pid32;
|
||||
if (!wallet2::parse_long_payment_id(payment_id, pid32))
|
||||
{
|
||||
error = "Invalid payment id";
|
||||
error = "Standalone payment id deprecated, use integrated address instead";
|
||||
return std::string();
|
||||
}
|
||||
}
|
||||
|
||||
std::string uri = "monero:" + address;
|
||||
unsigned int n_fields = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user