diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2012-03-25 06:17:04 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2012-03-25 06:17:04 +0000 |
commit | f7a3803382bbf79876388c219b59dea1e7a5f4e2 (patch) | |
tree | 103dccb53cab2d563592e29abeb7421a1c78a326 /h-source | |
parent | 70fa63a4c92a0848124443d0b0009a908a02595d (diff) |
improved reg expr to recognize URLs - Ark issue
Diffstat (limited to 'h-source')
-rw-r--r-- | h-source/Application/Include/wikiFormatting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/h-source/Application/Include/wikiFormatting.php b/h-source/Application/Include/wikiFormatting.php index 06a734c..0c599f5 100644 --- a/h-source/Application/Include/wikiFormatting.php +++ b/h-source/Application/Include/wikiFormatting.php @@ -133,7 +133,7 @@ class Tabs function checkUrl($url) { - $match = '/^http(s)?\:\/\/(www\.)?[a-zA-Z0-9\-\_]+(\.[a-zA-Z0-9\-\_]+)*\.([a-z]{2,3})((\/[a-zA-Z0-9\_\.\-\:\+]+)*(\/([a-zA-Z0-9\_\:\-\.\+]+\.(php|html|htm|asp|aspx|jsp|cgi))?)?)?(\?([a-zA-Z0-9\_\-\+\s]+\=[a-zA-Z0-9\_\-\s\+\&]+)+)?(#[a-zA-Z0-9\_\-\+\s]+)?([\s]*)?$/'; + $match = '/^http(s)?\:\/\/(www\.)?[a-zA-Z0-9\-\_]+(\.[a-zA-Z0-9\-\_]+)*\.([a-z]{2,4})((\/[a-zA-Z0-9\_\.\-\:\+]+)*(\/([a-zA-Z0-9\_\:\-\.\+]+\.(php|html|htm|asp|aspx|jsp|cgi))?)?)?(\?([a-zA-Z0-9\_\-\+\s]+\=[a-zA-Z0-9\_\-\s\+\&]+)+)?(#[a-zA-Z0-9\_\-\+\s]+)?([\s]*)?$/'; if (preg_match($match,$url)) { |