From d35ab615a0b98711390d39009e1a10a4edacfa9a Mon Sep 17 00:00:00 2001 From: "henning.noren" Date: Thu, 4 Jan 2007 20:49:53 +0100 Subject: UNDO: regex_simpler.patch Replaces some simple regular expressions with standard (faster) string functions darcs-hash:20070104194953-d2a3e-8fd0c89812277467c5bce566dfc3fba6ce1c3981.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 2c200cf5a..b98447cb4 100644 --- a/inc/common.php +++ b/inc/common.php @@ -613,7 +613,7 @@ function cleanText($text){ * @author Andreas Gohr */ function formText($text){ - $text = str_replace("\012","\015\012",$text); + $text = preg_replace("/\012/","\015\012",$text); return htmlspecialchars($text); } -- cgit v1.2.3