From 6d2813857efa308ed295048f047ea45b698ac093 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 8 Dec 2010 04:32:07 +1100 Subject: [PATCH] Fix for IP address links --- inc/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/config.php b/inc/config.php index 3bb24b85..284692ce 100644 --- a/inc/config.php +++ b/inc/config.php @@ -154,7 +154,7 @@ // Whether to turn URLs into functional links define('MARKUP_URLS', true, true); // Complex regular expression to catch URLs - define('URL_REGEX', '/' . '(https?|ftp):\/\/' . '([\w\-]+\.)+[a-zA-Z]{2,6}' . '(\/([\w\-~\.#\/?=&;:+%]+))?' . '/', true); + define('URL_REGEX', '/' . '(https?|ftp):\/\/' . '(([\w\-]+\.)+[a-zA-Z]{2,6}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' . '(\/([\w\-~\.#\/?=&;:+%]+))?' . '/', true); // Allowed file extensions $allowed_ext = Array('jpg', 'jpeg', 'bmp', 'gif', 'png', true);