mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -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
c4a17a6bc8
commit
1009704fa0
1 changed files with 3 additions and 1 deletions
|
|
@ -129,7 +129,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