From: x2003bruneau Date: Fri, 2 Feb 2007 10:17:48 +0000 (+0000) Subject: Many UTF-8 fixes: X-Git-Tag: xorg/0.9.14~305 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a14159bffdc1ea08c97e6634dc1480619bdc478a;p=platal.git Many UTF-8 fixes: -> replace_accent and soundex_fr (remove the last dependence on Diogenes) -> first XDB implementation using procedural mysqli -> use Tidy 2.0 -> add the 'u' modifier on preg_ to catch multi-bytes characters ... git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1461 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/classes/platalpage.php b/classes/platalpage.php index c07f6c6..dc75267 100644 --- a/classes/platalpage.php +++ b/classes/platalpage.php @@ -264,8 +264,8 @@ function at_to_globals($tpl_source, &$smarty) function trimwhitespace($source, &$smarty) { $tags = '(script|pre|textarea)'; - preg_match_all("!<$tags.*?>.*?!is", $source, $tagsmatches); - $source = preg_replace("!<$tags.*?>.*?!is", "&&&tags&&&", $source); + preg_match_all("!<$tags.*?>.*?!ius", $source, $tagsmatches); + $source = preg_replace("!<$tags.*?>.*?!ius", "&&&tags&&&", $source); // remove all leading spaces, tabs and carriage returns NOT // preceeded by a php close tag. @@ -300,12 +300,12 @@ function hide_emails($source, &$smarty) { //prevent email replacement in