about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/web-apps/restya-board/fix_request-uri.patch
blob: 9b96756e8299dd0529fa57f940f95fae96d51591 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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';