Skip to content

Commit

Permalink
Replace request= URI param with r=
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinandresen committed Dec 4, 2013
1 parent 0878eb7 commit e614d7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion php/demo_website/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion php/demo_website/createpaymentrequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion php/demo_website/form.html.inc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ If you change the form, you must click the Create Payment Request button to gene
<h1>Static URIs for testing</h1>
<p>Old-fashioned bitcoin: URI: <a href="bitcoin:mrhz5ZgSF3C1BSdyCKt3gEdhKoRL5BNfJV?amount=0.01&label=Faucet">Send to TP Faucet</a>
</p>
<p><a href="bitcoin:mrhz5ZgSF3C1BSdyCKt3gEdhKoRL5BNfJV?request=https%3A%2F%2Fbitcoincore.org%2F%7Egavin%2Ff.php%3Fh%3D89ea2e87e5b36a000000000000000000&amount=0.1">Invalid request URI</a>
<p><a href="bitcoin:mrhz5ZgSF3C1BSdyCKt3gEdhKoRL5BNfJV?r=https%3A%2F%2Fbitcoincore.org%2F%7Egavin%2Ff.php%3Fh%3D89ea2e87e5b36a000000000000000000&amount=0.1">Invalid request URI</a>
</p>
</div>

Expand Down

0 comments on commit e614d7b

Please sign in to comment.