1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Addressed a range of deprecation warnings

Closes #3969
This commit is contained in:
Dan Brown
2023-01-21 20:50:04 +00:00
parent 28dda39260
commit 78ebcb6f38
17 changed files with 33 additions and 27 deletions

View File

@ -310,7 +310,7 @@ class PageContentTest extends TestCase
{
$this->asEditor();
$page = $this->entities->page();
config()->push('app.allow_content_scripts', 'true');
config()->set('app.allow_content_scripts', 'true');
$script = 'abc123<script>console.log("hello-test")</script>abc123';
$page->html = "no escape {$script}";
@ -355,7 +355,7 @@ class PageContentTest extends TestCase
{
$this->asEditor();
$page = $this->entities->page();
config()->push('app.allow_content_scripts', 'true');
config()->set('app.allow_content_scripts', 'true');
$script = '<p onmouseenter="console.log(\'test\')">Hello</p>';
$page->html = "escape {$script}";