nixpkgs/pkgs/servers/web-apps/restya-board/fix_request-uri.patch

13 lines
596 B
Diff
Raw Normal View History

2017-11-22 12:11:21 +01:00
diff --git a/server/php/R/r.php b/server/php/R/r.php
--- a/server/php/R/r.php
+++ b/server/php/R/r.php
@@ -18,7 +18,7 @@ $r_debug = '';
$authUser = $client = $form = array();
$_server_protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https' : 'http';
$_server_domain_url = $_server_protocol . '://' . $_SERVER['HTTP_HOST']; // http://localhost
-header('x-response-url:' . $_SERVER[REQUEST_URI]);
+header('x-response-url:' . $_SERVER['REQUEST_URI']);
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: *');
require_once '../config.inc.php';