From 148b225feb1ffb9b40bc05b35b1792caebb95cbe Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 15 May 2005 18:31:23 +0000 Subject: [PATCH] * Improved the syntax of two regular expressions --- includes/OutputPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 )); -- 2.20.1