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:
@@ -27,7 +27,7 @@
|
||||
}
|
||||
</style>
|
||||
@yield('head')
|
||||
@include('partials.custom-head')
|
||||
@include('partials.export-custom-head')
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@include('partials.custom-head')
|
||||
@include('partials.export-custom-head')
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@@ -29,7 +29,7 @@
|
||||
</style>
|
||||
@endif
|
||||
|
||||
@include('partials.custom-head')
|
||||
@include('partials.export-custom-head')
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@@ -1,5 +0,0 @@
|
||||
@if(setting('app-custom-head', false))
|
||||
<!-- Custom user content -->
|
||||
{!! setting('app-custom-head') !!}
|
||||
<!-- End custom user content -->
|
||||
@endif
|
@@ -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
|
5
resources/views/partials/export-custom-head.blade.php
Normal file
5
resources/views/partials/export-custom-head.blade.php
Normal 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
|
Reference in New Issue
Block a user