From 3edf3f08f268af55c6ac824af774ccec19b893f4 Mon Sep 17 00:00:00 2001 From: "henning.noren" Date: Thu, 4 Jan 2007 20:49:53 +0100 Subject: regex_simpler.patch Replaces some simple regular expressions with standard (faster) string functions darcs-hash:20070104194953-d2a3e-0b06e7a599a0177ad37a54497074893572e1cae2.gz --- inc/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/common.php') diff --git a/inc/common.php b/inc/common.php index 60bec57a2..21dea4d5f 100644 --- a/inc/common.php +++ b/inc/common.php @@ -614,7 +614,7 @@ function cleanText($text){ * @author Andreas Gohr */ function formText($text){ - $text = preg_replace("/\012/","\015\012",$text); + $text = str_replace("\012","\015\012",$text); return htmlspecialchars($text); } -- cgit v1.2.3