1
0
Fork 0
mirror of synced 2024-07-05 06:31:08 +12:00

test certbot

This commit is contained in:
Eldad Fux 2020-02-19 02:49:55 +02:00
parent dd85077142
commit 93ff9a0c04

View file

@ -367,6 +367,7 @@ $utopia->get('/.well-known/acme-challenge')
$base = realpath(__DIR__.'/../certs'); $base = realpath(__DIR__.'/../certs');
$path = str_replace('/.well-known/acme-challenge/', '', $request->getParam('q')); $path = str_replace('/.well-known/acme-challenge/', '', $request->getParam('q'));
$absolute = realpath($base.'/'.$path); $absolute = realpath($base.'/'.$path);
return $response->json($files1 = scandir($base));
if(!$absolute) { if(!$absolute) {
throw new Exception('Unknown Path', 404); throw new Exception('Unknown Path', 404);