Full logs are at a different root now

This commit is contained in:
Graham Christensen 2018-01-27 14:40:16 -05:00
parent d894dd7e23
commit cf3bbbf6ca
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -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");