summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-25 20:44:44 +0200
committerandi <andi@splitbrain.org>2005-04-25 20:44:44 +0200
commit5578eb8f88a68a9d807e7f9a15bd4aefed7d3d3b (patch)
treef6ef3d17d97ac4954d014f9f30021afb65fde8ab /inc/parser
parenta2d649c465f8f77c2b1dfdcc3724e69fde78a296 (diff)
downloadrpg-5578eb8f88a68a9d807e7f9a15bd4aefed7d3d3b.tar.gz
rpg-5578eb8f88a68a9d807e7f9a15bd4aefed7d3d3b.tar.bz2
more freedom for interwiki links #273
darcs-hash:20050425184444-9977f-4c4d9abe6558206c71aec3bd2a5c924b2b8ffc03.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/handler.php5
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(