mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
Fix for IP address links
This commit is contained in:
parent
e7c0a40f83
commit
6d2813857e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user