1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00

Improved Token passing

This commit is contained in:
Matej Bačo 2022-02-23 10:41:39 +00:00
parent 721c857dbc
commit 6dbc4444b0

View file

@ -529,11 +529,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);