fix(share) : durcissement download (allowlist inline anti-XSS + nosniff) et masquage des erreurs SMB
This commit is contained in:
@@ -39,8 +39,8 @@ class ShareBrowseController extends AbstractController
|
||||
$entries = $this->fileSource->dir($path);
|
||||
} catch (ShareNotConfiguredException) {
|
||||
return new JsonResponse(['error' => 'Share not configured.'], 409);
|
||||
} catch (ShareConnectionException $e) {
|
||||
return new JsonResponse(['error' => $e->getMessage()], 502);
|
||||
} catch (ShareConnectionException) {
|
||||
return new JsonResponse(['error' => 'Unable to reach the file share.'], 502);
|
||||
}
|
||||
|
||||
return new JsonResponse([
|
||||
|
||||
Reference in New Issue
Block a user