commit 01fafa8aadb0ef51f80f1c63d60b9a2d59d3173c
parent f96edcf61313c567282d33e0d19d56e3d1e4c82f
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Wed, 9 Sep 2015 15:52:21 +0200
dummy
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontend/generate_taler_contract.php b/src/frontend/generate_taler_contract.php
@@ -29,7 +29,7 @@
// 1) recover the session information
session_start();
if ( (! isset($_SESSION['receiver'])) ||
- (! isset($_SESSION['amount']))
+ (! isset($_SESSION['amount'])) )
{
http_response_code (404);
echo "Please select a contract before getting to this page...";
@@ -71,7 +71,7 @@ $json = json_encode (array ('desc' => $desc,
// could be on an entirely different machine if
// desired.
$req = new http\Client\Request ("POST",
- "/backend/contract",
+ $_SERVER['SERVER_NAME'] . "/backend/contract",
array ("Content-Type" => "application/json"));
$req->getBody()->append ($json);