Skip to content

Commit

Permalink
Resolve broken documentation redirect #37
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Apr 9, 2021
1 parent 3f90a4b commit 73a3daa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/404.php
Expand Up @@ -6,6 +6,7 @@
$uri = getenv('REQUEST_URI');
$pieces = explode('/', $uri);
array_shift($pieces);
array_shift($pieces);

$dir = reset($pieces);
$packages = [
Expand Down Expand Up @@ -43,6 +44,6 @@
header("Location: $url",TRUE,302);
exit(0);
}
$dir = strip_tags($dir);
header("X-MixerApi-Dir: $dir");
//$dir = strip_tags($dir);
//header("X-MixerApi-Dir: $dir");
header("Location: /404.html",TRUE,302);

0 comments on commit 73a3daa

Please sign in to comment.