Skip to content

Commit 6596946

Browse files
Merge pull request #51401 from nextcloud/backport/51379/stable30
[stable30] fix(AppDiscover): Strip double-quotes from folder name
2 parents 34003a0 + 659cdda commit 6596946

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
@@ -128,7 +128,9 @@ public function getAppDiscoverJSON(): JSONResponse {
128128
#[PublicPage]
129129
#[NoCSRFRequired]
130130
public function getAppDiscoverMedia(string $fileName): Response {
131-
$etag = $this->discoverFetcher->getETag() ?? date('Y-m');
131+
$getEtag = $this->discoverFetcher->getETag() ?? date('Y-m');
132+
$etag = trim($getEtag, '"');
133+
132134
$folder = null;
133135
try {
134136
$folder = $this->appData->getFolder('app-discover-cache');

0 commit comments

Comments
 (0)