NOW MANAGED ON CODEBERG
Prevented custom HTML being inserted on settings page
Dan Brownaf3c0e43a594
diff --git a/resources/views/base.blade.php b/resources/views/base.blade.phpindex a98a37131..bb00ce19e 100644--- a/resources/views/base.blade.php+++ b/resources/views/base.blade.php@@ -23,9 +23,10 @@@include('partials/custom-styles')- <!-- Custom user content -->- @if(setting('app-custom-head'))+ @if(setting('app-custom-head') && \Route::currentRouteName() !== 'settings')+ <!-- Custom user content -->{!! setting('app-custom-head') !!}+ <!-- End custom user content -->@endif</head><body class="@yield('body-class')" ng-app="bookStack">diff --git a/routes/web.php b/routes/web.phpindex 076ffb94f..8d166f1d6 100644--- a/routes/web.php+++ b/routes/web.php@@ -129,7 +129,7 @@ Route::group(['middleware' => 'auth'], function () {// SettingsRoute::group(['prefix' => 'settings'], function() {- Route::get('/', 'SettingController@index');+ Route::get('/', 'SettingController@index')->name('settings');Route::post('/', 'SettingController@update');// Users