Skip to content
Permalink
Browse files

fixed previous commit c71d745 for win

  • Loading branch information...
RocketMan committed Jun 4, 2019
1 parent c71d745 commit bfaf08b558600ae2f119588fefc99a4fb67b6cc4
Showing with 4 additions and 2 deletions.
  1. +2 −1 css/.csshandler.php
  2. +2 −1 js/.jshandler.php
@@ -28,7 +28,8 @@
" * license GPL-3.0\n */\n";
$target = realpath(__DIR__.$_SERVER['PATH_INFO']);
if(!preg_match("@^".__DIR__."/@", $target) || !file_exists($target)) {
if(strncmp($target, __DIR__.DIRECTORY_SEPARATOR, strlen(__DIR__)+1) ||
!file_exists($target)) {
http_response_code(404);
return;
}
@@ -30,7 +30,8 @@
"// license GPL-3.0\n";
$target = realpath(__DIR__.$_SERVER['PATH_INFO']);
if(!preg_match("@^".__DIR__."/@", $target) || !file_exists($target)) {
if(strncmp($target, __DIR__.DIRECTORY_SEPARATOR, strlen(__DIR__)+1) ||
!file_exists($target)) {
http_response_code(404);
return;
}

0 comments on commit bfaf08b

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