Code cleanup

This commit is contained in:
Matej Bačo
2022-02-24 14:08:05 +00:00
parent eb383a0d76
commit e171d43110
+1 -4
View File
@@ -456,11 +456,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);