From e4e7e0005e931967dd6162588f1c5913dbf4603e Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Thu, 20 Jan 2022 11:26:18 +0000 Subject: [PATCH] fix(themes): update themes stylesheet route and remove css extension removing the css extension prevents having the file hijacked by the web server config --- app/Config/Routes.php | 4 ++-- app/Views/errors/html/error_404.php | 2 +- app/Views/errors/html/production.php | 2 +- themes/cp_admin/_layout.php | 2 +- themes/cp_app/embed.php | 2 +- themes/cp_app/episode/_layout.php | 2 +- themes/cp_app/home.php | 2 +- themes/cp_app/pages/_layout.php | 2 +- themes/cp_app/pages/map.php | 2 +- themes/cp_app/podcast/_layout.php | 2 +- themes/cp_app/podcast/follow.php | 2 +- themes/cp_app/post/remote_action.php | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 077a76ae..2ad119d6 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -51,8 +51,8 @@ $routes->addPlaceholder( $routes->get('manifest.webmanifest', 'WebmanifestController', [ 'as' => 'webmanifest', ]); -$routes->get('styles/themes.css', 'ColorsController', [ - 'as' => 'color-themes-css', +$routes->get('themes/colors', 'ColorsController', [ + 'as' => 'themes-colors-css', ]); // We get a performance increase by specifying the default diff --git a/app/Views/errors/html/error_404.php b/app/Views/errors/html/error_404.php index 13cd3357..96a7517b 100644 --- a/app/Views/errors/html/error_404.php +++ b/app/Views/errors/html/error_404.php @@ -5,7 +5,7 @@ 404 Page Not Found - ' /> + ' /> asset('styles/index.css', 'css') ?> diff --git a/app/Views/errors/html/production.php b/app/Views/errors/html/production.php index f51eff00..8df96902 100644 --- a/app/Views/errors/html/production.php +++ b/app/Views/errors/html/production.php @@ -7,7 +7,7 @@ Whoops! - ' /> + ' /> asset('styles/index.css', 'css') ?> diff --git a/themes/cp_admin/_layout.php b/themes/cp_admin/_layout.php index d98d152f..621e46fe 100644 --- a/themes/cp_admin/_layout.php +++ b/themes/cp_admin/_layout.php @@ -14,7 +14,7 @@ - ' /> + ' /> asset('styles/index.css', 'css') ?> get('App.siteIcon')['ico'] ?>" /> - ' /> + ' /> asset('styles/index.css', 'css') ?> - ' /> + ' /> asset('styles/index.css', 'css') ?> - ' /> + ' /> asset('styles/index.css', 'css') ?> - ' /> + ' /> asset('styles/index.css', 'css') ?> - ' /> + ' /> asset('styles/index.css', 'css') ?> - ' /> + ' /> asset('styles/index.css', 'css') ?> - ' /> + ' /> asset('styles/index.css', 'css') ?> - ' /> + ' /> asset('styles/index.css', 'css') ?>