summaryrefslogtreecommitdiff
path: root/inc/parser/handler.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-07-28 20:04:47 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-07-28 20:04:47 +0200
commit4468cb4c2906e2ae8887839b5e683cfc01c7b12c (patch)
tree0d4ed1d8ef6cb719d73db271018de4233ff7d245 /inc/parser/handler.php
parent6cf3d6379da5dfc059a22d417554adee2610df7f (diff)
downloadrpg-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/handler.php')
-rw-r--r--inc/parser/handler.php2
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',