From: Ævar Arnfjörð Bjarmason Date: Sun, 15 May 2005 18:31:23 +0000 (+0000) Subject: * Improved the syntax of two regular expressions X-Git-Tag: 1.5.0alpha2~170 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=148b225feb1ffb9b40bc05b35b1792caebb95cbe;p=lhc%2Fweb%2Fwiklou.git * Improved the syntax of two regular expressions --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 8990bdfa55..baa3724668 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -724,8 +724,8 @@ class OutputPage { $a = array_slice ( $a , 0 , 10 ) ; # 10 keywords max $a = implode ( ',' , $a ) ; $strip = array( - "/<.*?" . ">/" => '', - "/[_]/" => ' ' + "/<.*?>/" => '', + "/_/" => ' ' ); $a = htmlspecialchars(preg_replace(array_keys($strip), array_values($strip),$a ));