Skip to content
Permalink
Browse files

updated minification path validation

  • Loading branch information...
RocketMan committed Jun 4, 2019
1 parent 11e2e00 commit c71d745e71cbdc03464f4daee8cd1b23e36f128f
Showing with 4 additions and 4 deletions.
  1. +2 −2 css/.csshandler.php
  2. +2 −2 js/.jshandler.php
@@ -27,8 +27,8 @@
" * https://zookeeper.ibinx.com/\n".
" * license GPL-3.0\n */\n";
$target = __DIR__.$_SERVER['PATH_INFO'];
if(!file_exists($target)) {
$target = realpath(__DIR__.$_SERVER['PATH_INFO']);
if(!preg_match("@^".__DIR__."/@", $target) || !file_exists($target)) {
http_response_code(404);
return;
}
@@ -29,8 +29,8 @@
"// https://zookeeper.ibinx.com/\n".
"// license GPL-3.0\n";
$target = __DIR__.$_SERVER['PATH_INFO'];
if(!file_exists($target)) {
$target = realpath(__DIR__.$_SERVER['PATH_INFO']);
if(!preg_match("@^".__DIR__."/@", $target) || !file_exists($target)) {
http_response_code(404);
return;
}

0 comments on commit c71d745

Please sign in to comment.
You can’t perform that action at this time.