summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/config.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index def76815..0fce2593 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -105,6 +105,7 @@
define('WIKI_MARKUP', true, true);
// 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);
// Allowed file extensions