Merge pull request #51401 from nextcloud/backport/51379/stable30

[stable30] fix(AppDiscover): Strip double-quotes from folder name
This commit is contained in:
Andy Scherzinger 2025-03-12 08:58:05 +01:00 committed by GitHub
commit 6596946df9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -128,7 +128,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');