@@ -87,6 +87,8 @@ function handler(Psr\Http\Message\ServerRequestInterface $req) {
}
functionserveStaticFiles(string$url){
if($url=="")$url="index.html";
$path=ROOT."/$url";
$path=realpath($path);
if(strpos(ROOT,$path)===0&&is_file($path)){
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.