summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-08 04:32:07 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-08 04:32:07 +1100
commit6d2813857efa308ed295048f047ea45b698ac093 (patch)
tree7d197f191656e38d217f3660b9aa020b824f920b /inc/config.php
parente7c0a40f83227aedea96f6a4e62d8c0f880210fe (diff)
Fix for IP address links
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php2
1 files changed, 1 insertions, 1 deletions
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);