diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-02 22:17:25 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-02 22:17:25 +1100 |
| commit | bcda984255b5168cd0460364c863c083e08d9ad0 (patch) | |
| tree | 22676b11495f0a22795b35a47a1a886f2aef2d75 /inc/config.php | |
| parent | 6bbe6583706f7c231072f7157a29f55b28a905c7 (diff) | |
Fixed URL matching
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 2 |
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); |
