Browse Source

Fix for IP address links

pull/40/head
Savetheinternet 14 years ago
parent
commit
6d2813857e
  1. 2
      inc/config.php

2
inc/config.php

@ -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…
Cancel
Save