mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +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.
|
* Contextual escape function for v2.
|
||||||
*
|
*
|
||||||
* @param string $str
|
* @param string $str
|
||||||
* @param string $type
|
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function _v2_escape(string $str, string $type = ''): string
|
protected function _v2_escape(string $str): string
|
||||||
{
|
{
|
||||||
switch ($this->config->context)
|
switch ($this->config->context)
|
||||||
{
|
{
|
||||||
case 'CSS': return escape_css($str);
|
|
||||||
case 'JS': return escape_js($str);
|
case 'JS': return escape_js($str);
|
||||||
default: return escape($str);
|
default: return escape($str);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue