diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-03 21:09:24 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-03 21:09:24 +1100 |
| commit | c06bd810510f2e30c634523b8f77b238bc8bbfdb (patch) | |
| tree | e3ebe781aaaad20c54eb9428deec1e1f29ff80c8 | |
| parent | 0448206c72734ca7fa30bd68c2a3e246306cd50c (diff) | |
URL fix.
| -rw-r--r-- | inc/config.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index efde7f81..283a9282 100644 --- a/inc/config.php +++ b/inc/config.php @@ -68,7 +68,9 @@ define('AUTO_UNICODE', true); // Whether to turn URLs into functional links define('MARKUP_URLS', true); - define('URL_REGEX', "/(https?|ftp)\:\/\/([a-z0-9+!*(),;?&=\$_.-]+(\:[a-z0-9+!*(),;?&=\$_.-]+)?@)?([a-z0-9-.]*)\.([a-z]{2,3})(\:[0-9]{2,5})?(\/([a-z0-9+\$_-]\.?)+)*\/?(\?[a-z+&\$_.-][a-z0-9;:@&%=+\/\$_.-]*)?(#[a-z_.-][a-z0-9+\$_.-]*)?/"); + + // scheme domain location + define('URL_REGEX', '/' . '(https?|ftp):\/\/' . '([\w\-]+\.)+[a-zA-Z]{2,6}' . '(\/([\w\-~\.#\/?=&;:+%]+))?' . '/'); // Allowed file extensions $allowed_ext = Array('jpg', 'jpeg', 'bmp', 'gif', 'png'); |
