From 5578eb8f88a68a9d807e7f9a15bd4aefed7d3d3b Mon Sep 17 00:00:00 2001 From: andi <andi@splitbrain.org> Date: Mon, 25 Apr 2005 20:44:44 +0200 Subject: [PATCH] more freedom for interwiki links #273 darcs-hash:20050425184444-9977f-4c4d9abe6558206c71aec3bd2a5c924b2b8ffc03.gz --- inc/parser/handler.php | 5 ++--- 1 file 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( -- GitLab