From ae91636d1d2190c314cd95b3448b7002be0712d8 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Tue, 8 May 2012 23:59:54 +1000 Subject: [PATCH] Bugfix: with disabling config[markup_urls] --- inc/functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index ac0a1c96..f21df417 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1396,8 +1396,10 @@ function markup(&$body, $track_cites = false) { if ($config['auto_unicode']) { $body = unicodify($body); - foreach ($markup_urls as &$url) { - $body = str_replace(unicodify($url), $url, $body); + if ($config['markup_urls']) { + foreach ($markup_urls as &$url) { + $body = str_replace(unicodify($url), $url, $body); + } } }