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