From b859fb4f895ede033cb27fb137fb24e4beedceea Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 23 Jan 2021 16:55:10 +0100 Subject: [PATCH] Url encode the PMA_VERSION because it could contain special chars See: https://salsa.debian.org/phpmyadmin-team/phpmyadmin/-/blob/debian/4%255.0.4+dfsg2-1/debian/patches/Fix-test-for-Debian-versions-on-Debian-CI.patch Signed-off-by: William Desportes --- test/classes/ScriptsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/classes/ScriptsTest.php b/test/classes/ScriptsTest.php index b7185e82de..6c8689a6c4 100644 --- a/test/classes/ScriptsTest.php +++ b/test/classes/ScriptsTest.php @@ -59,7 +59,7 @@ class ScriptsTest extends AbstractTestCase $actual = $this->object->getDisplay(); $this->assertStringContainsString( - 'src="js/dist/common.js?v=' . PMA_VERSION . '"', + 'src="js/dist/common.js?v=' . rawurlencode(PMA_VERSION) . '"', $actual ); $this->assertStringContainsString(