From e614d7b85281b1cff778a6b5ec9e0aa52596c5a1 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Wed, 4 Dec 2013 13:11:05 +1000 Subject: [PATCH] Replace request= URI param with r= --- php/demo_website/README.txt | 2 +- php/demo_website/createpaymentrequest.php | 2 +- php/demo_website/form.html.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/php/demo_website/README.txt b/php/demo_website/README.txt index 92e2786..0cb6b4c 100644 --- a/php/demo_website/README.txt +++ b/php/demo_website/README.txt @@ -15,7 +15,7 @@ What is here: createpaymentrequest.php : Main page: logic for creating a PaymentRequest form.html.inc : HTML for createpaymentrequest.php -If a bitcoin: URI is produced, then the request= parameter will point to: +If a bitcoin: URI is produced, then the r= parameter will point to: f.php : just serves up a generated PaymentRequest from memcache If a payment_url is part of the payment request, then it is set to: diff --git a/php/demo_website/createpaymentrequest.php b/php/demo_website/createpaymentrequest.php index 8d5d147..5a62477 100755 --- a/php/demo_website/createpaymentrequest.php +++ b/php/demo_website/createpaymentrequest.php @@ -224,7 +224,7 @@ function createPaymentRequest($params, &$formErrors) $memcache->set($hash, $data, FALSE, 60*60*24); /* cache for 24 hours */ // f.php is fetch payment request from memcache: - $urlParams['request'] = AbsoluteURL('')."f.php?h=".$hash; + $urlParams['r'] = AbsoluteURL('')."f.php?h=".$hash; if ($nAddresses == 1 && $totalAmount > 0) { $urlParams['amount'] = $totalAmount; diff --git a/php/demo_website/form.html.inc b/php/demo_website/form.html.inc index 2c091f8..42a0ec3 100644 --- a/php/demo_website/form.html.inc +++ b/php/demo_website/form.html.inc @@ -87,7 +87,7 @@ If you change the form, you must click the Create Payment Request button to gene

Static URIs for testing

Old-fashioned bitcoin: URI: Send to TP Faucet

-

Invalid request URI +

Invalid request URI