From d7cf825a7d39e952629bf74c52488bf1ee991297 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 19 Mar 2025 11:23:42 +0900 Subject: [PATCH] Use regular escape() for CSS contexts --- common/framework/Template.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/framework/Template.php b/common/framework/Template.php index b0e2c9a06..49ffb831b 100644 --- a/common/framework/Template.php +++ b/common/framework/Template.php @@ -959,14 +959,12 @@ class Template * Contextual escape function for v2. * * @param string $str - * @param string $type * @return string */ - protected function _v2_escape(string $str, string $type = ''): string + protected function _v2_escape(string $str): string { switch ($this->config->context) { - case 'CSS': return escape_css($str); case 'JS': return escape_js($str); default: return escape($str); }