From edd228decb5ef4c3ffa2a8be00983937680a56c2 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 30 May 2015 15:03:44 -0700 Subject: strip images from directory text entries --- include/bbcode.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/bbcode.php b/include/bbcode.php index 1f5a65399..9ec5ce22f 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -954,3 +954,8 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) { return $Text; } + + +function strip_bbimage($s) { + $Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text); +} \ No newline at end of file -- cgit v1.2.3