aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2022-01-01 12:26:18 +0100
committerAndreas Gohr <andi@splitbrain.org>2022-01-01 12:28:35 +0100
commitf7711f2b85e327b7a52627930dff9288aa2482cf (patch)
treec7723399fc602f47e012e3c0ed6c3d756f8eb351 /_test
parent7aee97ee813f0e08e339a6f29e554d52bc4ef9d3 (diff)
downloaddokuwiki-f7711f2b85e327b7a52627930dff9288aa2482cf.tar.gz
dokuwiki-f7711f2b85e327b7a52627930dff9288aa2482cf.zip
always use the same htmlspecialchars setup
defaults for htmlspecialchars change in PHP 8.1 All calls should always use our hsc() method to ensure comparability (especially when testing)
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/parser/parser_media.test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/_test/tests/inc/parser/parser_media.test.php b/_test/tests/inc/parser/parser_media.test.php
index fdb9c0fc4..edb635acd 100644
--- a/_test/tests/inc/parser/parser_media.test.php
+++ b/_test/tests/inc/parser/parser_media.test.php
@@ -136,12 +136,12 @@ class TestOfDoku_Parser_Media extends TestOfDoku_Parser {
function testVideoInternalTitle() {
$file = 'wiki:kind_zu_katze.ogv';
$title = 'Single quote: \' Ampersand: &';
-
+
$Renderer = new Doku_Renderer_xhtml();
$url = $Renderer->externalmedia($file, $title, null, null, null, 'cache', 'details', true);
-
+
// make sure the title is escaped just once
- $this->assertEquals(htmlspecialchars($title), substr($url, 28, 32));
+ $this->assertEquals(hsc($title), substr($url, 28, 37));
}
function testSimpleLinkText() {