Skip to content

Commit bbd3a3c

Browse files
authored
Merge pull request #51379 from nextcloud/appStoreCacheFolder
fix(AppDiscover): Strip double-quotes from folder name
2 parents a708005 + 659747e commit bbd3a3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/settings/lib/Controller/AppSettingsController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ public function getAppDiscoverJSON(): JSONResponse {
131131
#[PublicPage]
132132
#[NoCSRFRequired]
133133
public function getAppDiscoverMedia(string $fileName): Response {
134-
$etag = $this->discoverFetcher->getETag() ?? date('Y-m');
134+
$getEtag = $this->discoverFetcher->getETag() ?? date('Y-m');
135+
$etag = trim($getEtag, '"');
136+
135137
$folder = null;
136138
try {
137139
$folder = $this->appData->getFolder('app-discover-cache');

0 commit comments

Comments
 (0)