summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-02 22:17:25 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-02 22:17:25 +1100
commitbcda984255b5168cd0460364c863c083e08d9ad0 (patch)
tree22676b11495f0a22795b35a47a1a886f2aef2d75 /inc/config.php
parent6bbe6583706f7c231072f7157a29f55b28a905c7 (diff)
Fixed URL matching
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 52eb40bb..1c6f94b6 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -212,7 +212,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}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' . '(\/([\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);