diff --git a/.env.example b/.env.example index 4dee3b33441..13114b8b076 100644 --- a/.env.example +++ b/.env.example @@ -26,6 +26,13 @@ DB_DATABASE=database_database DB_USERNAME=database_username DB_PASSWORD=database_user_password +# Storage system to use +# By default files are stored on the local filesystem, with images being placed in +# public web space so they can be efficiently served directly by the web-server. +# For other options with different security levels & considerations, refer to: +# https://www.bookstackapp.com/docs/admin/upload-config/ +STORAGE_TYPE=local + # Mail system to use # Can be 'smtp' or 'sendmail' MAIL_DRIVER=smtp diff --git a/.env.example.complete b/.env.example.complete index 18e7bd00d9c..6c773f601f1 100644 --- a/.env.example.complete +++ b/.env.example.complete @@ -351,10 +351,25 @@ EXPORT_PDF_COMMAND_TIMEOUT=15 # Only used if 'ALLOW_UNTRUSTED_SERVER_FETCHING=true' which disables security protections. WKHTMLTOPDF=false -# Allow diff --git a/resources/views/layouts/parts/back-to-top.blade.php b/resources/views/layouts/parts/back-to-top.blade.php new file mode 100644 index 00000000000..b6efc97497b --- /dev/null +++ b/resources/views/layouts/parts/back-to-top.blade.php @@ -0,0 +1,15 @@ +
+
@endif
@if (setting('app-name-header'))
{{ setting('app-name') }}
diff --git a/resources/views/pages/parts/code-editor.blade.php b/resources/views/pages/parts/code-editor.blade.php
index 303b3b0bee3..8fa43373859 100644
--- a/resources/views/pages/parts/code-editor.blade.php
+++ b/resources/views/pages/parts/code-editor.blade.php
@@ -23,7 +23,7 @@ class="popup-background code-editor">
diff --git a/resources/views/settings/audit.blade.php b/resources/views/settings/audit.blade.php
index 8e477668040..ce6a0463427 100644
--- a/resources/views/settings/audit.blade.php
+++ b/resources/views/settings/audit.blade.php
@@ -88,7 +88,11 @@ class="text-item">{{ $type }}
@foreach($activities as $activity)
{{ trans('settings.sorting_page_limits_desc') }}
+{{ trans('settings.sorting_book_default_desc') }}
+{{ trans('settings.sorting_book_default_desc') }}
{{ trans('preferences.layout_edit_desc') }}
+ @if(!isset($blocks['center'])) ++ {{ trans('preferences.layout_edit_column_hint') }} +
+ @endif + + + + +{{ trans('settings.roles_system_warning') }}
+ 1 {{ trans('settings.role_permission_note_users_and_roles') }} +
{{ trans('settings.webhooks_events_desc') }}
{{ trans('settings.webhooks_events_warning') }}
-{{ trans('entities.shelves_popular_empty') }}
- @endif -{{ trans('entities.shelves_new_empty') }}
- @endif -{{ trans('entities.shelves_new_empty') }}
+ @endif +{{ trans('entities.shelves_popular_empty') }}
+ @endif +{{ trans('preferences.layouts_desc') }}
+ +{{ trans('preferences.shortcuts_overview_desc') }}
+Some script
", + ]; + + $this->asEditor(); + $page = $this->entities->page(); + + foreach ($checks as $check) { + $page->html = $check; + $page->save(); + + $pageView = $this->get($page->getUrl()); + $pageView->assertStatus(200); + $this->withHtml($pageView)->assertElementNotContains('.page-content', ''); + } + } + + public function test_js_and_base64_src_urls_are_removed() + { + config()->set('app.content_filtering', 'j'); + + $checks = [ + '', + '', + '', + '', + '', + '', + '', + 'Some script
", - ]; - - $this->asEditor(); - $page = $this->entities->page(); - - foreach ($checks as $check) { - $page->html = $check; - $page->save(); - - $pageView = $this->get($page->getUrl()); - $pageView->assertStatus(200); - $this->withHtml($pageView)->assertElementNotContains('.page-content', ''); - } - } - - public function test_js_and_base64_src_urls_are_removed() - { - $checks = [ - '', - '', - '', - '', - '', - '', - '', - '
{{ trans('entities.page_contents_info') }}
+{{ trans('entities.page_contents_none') }}
+ +