mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(AppDiscover): Ensure created cache folder is safe-chars only
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
eb597917f6
commit
659747e5b1
1 changed files with 3 additions and 1 deletions
|
|
@ -131,7 +131,9 @@ class AppSettingsController extends Controller {
|
|||
#[PublicPage]
|
||||
#[NoCSRFRequired]
|
||||
public function getAppDiscoverMedia(string $fileName): Response {
|
||||
$etag = $this->discoverFetcher->getETag() ?? date('Y-m');
|
||||
$getEtag = $this->discoverFetcher->getETag() ?? date('Y-m');
|
||||
$etag = trim($getEtag, '"');
|
||||
|
||||
$folder = null;
|
||||
try {
|
||||
$folder = $this->appData->getFolder('app-discover-cache');
|
||||
|
|
|
|||
Loading…
Reference in a new issue