1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Filtered scripts in custom HTML head for exports

Since it appeared to cause problems in some scenarios.
Related to #2490
This commit is contained in:
Dan Brown
2021-05-03 23:59:52 +01:00
parent c50ac022a8
commit 43b6633183
10 changed files with 101 additions and 74 deletions

View File

@@ -27,7 +27,7 @@
}
</style>
@yield('head')
@include('partials.custom-head')
@include('partials.export-custom-head')
</head>
<body>

View File

@@ -19,7 +19,7 @@
}
}
</style>
@include('partials.custom-head')
@include('partials.export-custom-head')
</head>
<body>

View File

@@ -29,7 +29,7 @@
</style>
@endif
@include('partials.custom-head')
@include('partials.export-custom-head')
</head>
<body>

View File

@@ -1,5 +0,0 @@
@if(setting('app-custom-head', false))
<!-- Custom user content -->
{!! setting('app-custom-head') !!}
<!-- End custom user content -->
@endif

View File

@@ -1,5 +1,5 @@
@if(setting('app-custom-head') && \Route::currentRouteName() !== 'settings')
<!-- Custom user content -->
{!! setting('app-custom-head') !!}
<!-- End custom user content -->
<!-- Custom user content -->
{!! setting('app-custom-head') !!}
<!-- End custom user content -->
@endif

View File

@@ -0,0 +1,5 @@
@if(setting('app-custom-head'))
<!-- Custom user content -->
{!! \BookStack\Util\HtmlContentFilter::removeScripts(setting('app-custom-head')) !!}
<!-- End custom user content -->
@endif