mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 01:24:05 +01:00
Fixed URL matching
This commit is contained in:
parent
6bbe658370
commit
bcda984255
@ -212,7 +212,7 @@
|
|||||||
// Whether to turn URLs into functional links
|
// Whether to turn URLs into functional links
|
||||||
define('MARKUP_URLS', true, true);
|
define('MARKUP_URLS', true, true);
|
||||||
// Complex regular expression to catch URLs
|
// 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 file extensions
|
||||||
$allowed_ext = Array('jpg', 'jpeg', 'bmp', 'gif', 'png', true);
|
$allowed_ext = Array('jpg', 'jpeg', 'bmp', 'gif', 'png', true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user