From cf3bbbf6ca8c0131d2fa7f0c5e8616f25b06d221 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sat, 27 Jan 2018 14:40:16 -0500 Subject: [PATCH] Full logs are at a different root now --- log-api/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/log-api/index.php b/log-api/index.php index 1f412f3..9712067 100644 --- a/log-api/index.php +++ b/log-api/index.php @@ -18,9 +18,9 @@ if (!isset($_SERVER['REQUEST_URI']) || empty($_SERVER['REQUEST_URI'])) { abrt("uri missing"); } -$reqd = $_SERVER['REQUEST_URI']; -$req = realpath("$root/$reqd"); -$serve_root = "https://logs.nix.gsc.io/$reqd"; +$reqd = substr($_SERVER['REQUEST_URI'], strlen("/logs/")); +$req = realpath("$root/logs/$reqd"); +$serve_root = "https://logs.nix.gsc.io/logfile/$reqd"; if ($req === false) { abrt("absent");