From 3201b39f47b08854d883213ff3323646086cf213 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 26 Oct 2011 11:28:33 +0200 Subject: [PATCH] added missing supported charset for htmlspecialchars --- lib/Twig/Extension/Core.php | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index d0f6acb..965a9cc 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -516,14 +516,15 @@ function twig_escape_filter(Twig_Environment $env, $string, $type = 'html', $cha 'iso-8859-15', 'iso8859-15', 'utf-8', 'cp866', 'ibm866', '866', - 'cp1251', 'win-1251', '1251', - 'cp1252', '1252', + 'cp1251', 'windows-1251', 'win-1251', '1251', + 'cp1252', 'windows-1252', '1252', 'koi8-r', 'koi8-ru', 'koi8r', 'big5', '950', 'gb2312', '936', - 'big5-hkscs', 'big5', + 'big5-hkscs', 'shift_jis', 'sjis', '932', 'euc-jp', 'eucjp', + 'iso8859-5', 'iso-8859-5', 'macroman', ))) { return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, $charset); } -- 1.7.2.5