diff options
author | Andreas Gohr <andi@splitbrain.org> | 2005-07-28 20:04:47 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2005-07-28 20:04:47 +0200 |
commit | 4468cb4c2906e2ae8887839b5e683cfc01c7b12c (patch) | |
tree | 0d4ed1d8ef6cb719d73db271018de4233ff7d245 /inc/parser | |
parent | 6cf3d6379da5dfc059a22d417554adee2610df7f (diff) | |
download | rpg-4468cb4c2906e2ae8887839b5e683cfc01c7b12c.tar.gz rpg-4468cb4c2906e2ae8887839b5e683cfc01c7b12c.tar.bz2 |
handle all RFC 1738 compliable schemes in external links
RFC 1738 states:
Scheme names consist of a sequence of characters. The lower case
letters "a"--"z", digits, and the characters plus ("+"), period
("."), and hyphen ("-") are allowed.
DokuWiki did only recognize alphanumeric characters, this patch adds
periods, plus and hyphen.
Thanks to "ytrewq1" for pointing that out.
darcs-hash:20050728180447-7ad00-dc0d4b8e9309d571715d6c490d1505bb2666c786.gz
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/handler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 4ed87c3de..ded291356 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -411,7 +411,7 @@ class Doku_Handler { array($link[0],$link[1]), $pos ); - }elseif ( preg_match('#^([a-z0-9]+?)://#i',$link[0]) ) { + }elseif ( preg_match('#^([a-z0-9\-\.+]+?)://#i',$link[0]) ) { // external link (accepts all protocols) $this->_addCall( 'externallink', |