mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fixed escaping of backslashes in Smarty_Compiler::_quote_replace()
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
|||||||
|
- fix escaping of backslashes in Smarty_Compiler::_quote_replace() (messju)
|
||||||
|
|
||||||
Version 2.6.3 (June 16, 2004)
|
Version 2.6.3 (June 16, 2004)
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
|
@@ -2120,7 +2120,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
*/
|
*/
|
||||||
function _quote_replace($string)
|
function _quote_replace($string)
|
||||||
{
|
{
|
||||||
return preg_replace('![\\$]\d!', '\\\\\\0', $string);
|
return strtr($string, array('\\' => '\\\\', '$' => '\\$'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user