Merge pull request 'bugfix/issue397' (#398) from bugfix/issue397 into develop
Some checks are pending
ci/woodpecker/push/build Pipeline is pending approval
ci/woodpecker/push/security Pipeline is pending approval

Reviewed-on: #398
This commit is contained in:
Simon Vieille 2025-03-12 17:59:23 +01:00
commit b2fc5340be
3 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,8 @@
## [Unreleased]
### Fixed
* fix: add missing NoCSRFRequired import in CssController (#397)
## 4.1.0
### Added
* add compatibility with NC31

View file

@ -144,7 +144,11 @@ class Application extends App implements IBootstrap
$cache = $this->config->getAppValue(self::APP_ID, 'cache', '0');
foreach ($assets as $value) {
$route = \OC::$server->getURLGenerator()->linkToRoute($value['route'], ['v' => $cache]);
$route = \OC::$server->getURLGenerator()->linkToRoute(
$value['route'],
['v' => $cache]
);
$value['attr'][$value['route_attr']] = $route;
Util::addHeader($value['type'], $value['attr'], '');

View file

@ -26,6 +26,7 @@ use OCA\SideMenu\Service\ConfigProxy;
use OCA\Theming\ThemingDefaults;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IRequest;