mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Use regular escape() for CSS contexts
This commit is contained in:
parent
01f34781df
commit
d7cf825a7d
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue