From 7772b266a9a06ff94cae1e64ef98d73c79e98b68 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 1 Feb 2010 17:51:15 +0000 Subject: Fixes #1398: autop() doesn't call missing clean_pre() function. git-svn-id: http://code.elgg.org/elgg/trunk@3890 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/input.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engine/lib/input.php') diff --git a/engine/lib/input.php b/engine/lib/input.php index 7c5fd58c4..67a61446d 100644 --- a/engine/lib/input.php +++ b/engine/lib/input.php @@ -173,9 +173,10 @@ function autop($pee, $br = 1) { } $pee = preg_replace('!(]*>)\s*
!', "$1", $pee); $pee = preg_replace('!
(\s*]*>)!', '$1', $pee); - if (strpos($pee, ')(.*?)!is', 'clean_pre', $pee ); - } +// if (strpos($pee, '. Only there because of the comment. +// $pee = preg_replace_callback('!()(.*?)!is', 'clean_pre', $pee ); +// } $pee = preg_replace( "|\n

$|", '

', $pee ); return $pee; -- cgit v1.2.3