diff options
author | andi <andi@splitbrain.org> | 2005-04-25 20:44:44 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-25 20:44:44 +0200 |
commit | 5578eb8f88a68a9d807e7f9a15bd4aefed7d3d3b (patch) | |
tree | f6ef3d17d97ac4954d014f9f30021afb65fde8ab /inc/parser/handler.php | |
parent | a2d649c465f8f77c2b1dfdcc3724e69fde78a296 (diff) | |
download | rpg-5578eb8f88a68a9d807e7f9a15bd4aefed7d3d3b.tar.gz rpg-5578eb8f88a68a9d807e7f9a15bd4aefed7d3d3b.tar.bz2 |
more freedom for interwiki links #273
darcs-hash:20050425184444-9977f-4c4d9abe6558206c71aec3bd2a5c924b2b8ffc03.gz
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r-- | inc/parser/handler.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 8bf4f89cd..d69c2be22 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -354,15 +354,14 @@ class Doku_Handler { $link = preg_split('/\|/u',$link,2); if ( !isset($link[1]) ) { $link[1] = NULL; - - // If the title is an image, convert it to an array containing the image details } else if ( preg_match('/^\{\{[^\}]+\}\}$/',$link[1]) ) { + // If the title is an image, convert it to an array containing the image details $link[1] = Doku_Handler_Parse_Media($link[1]); } //decide which kind of link it is - if ( preg_match('/^[a-zA-Z]+>{1}[\w()\/\\#~:.?+=&%@!\-;,]+$/u',$link[0]) ) { + if ( preg_match('/^[a-zA-Z]+>{1}.+$/u',$link[0]) ) { // Interwiki $interwiki = preg_split('/>/u',$link[0]); $this->_addCall( |