mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
parent
f37203a18e
commit
f2c063817d
1 changed files with 4 additions and 1 deletions
|
|
@ -552,8 +552,11 @@ App::get('/.well-known/acme-challenge')
|
|||
throw new Exception('Invalid challenge token.', 400);
|
||||
}
|
||||
|
||||
$filePath = '/.well-known/acme-challenge' . $token;
|
||||
|
||||
$base = \realpath(APP_STORAGE_CERTIFICATES);
|
||||
$absolute = \realpath($base.'/.well-known/acme-challenge/'.$token);
|
||||
$path = \str_replace('/.well-known/acme-challenge/', '', $filePath);
|
||||
$absolute = \realpath($base.'/.well-known/acme-challenge/'.$path);
|
||||
|
||||
if (!$base) {
|
||||
throw new Exception('Storage error', 500, Exception::GENERAL_SERVER_ERROR);
|
||||
|
|
|
|||
Loading…
Reference in a new issue