Loading...
 
Skip to main content

Wiki links with brackets at end of page name drop closing bracket

Status
Open
Subject
Wiki links with brackets at end of page name drop closing bracket
Version
6.x
Category
  • Error
Feature
Wiki Syntax (text area, parser, external wiki, etc)
Submitted by
Nelson Ko
Lastmod by
Nelson Ko
Rating
(0)
Description

If I enter:
((pagename(something_in_brackets))) or ((pagename|description(something_in_brackets)))

The pagename or the description will not have the closing bracket included. It should.

Solution

Should this be in 6.x or trunk?

Copy to clipboard
Index: lib/tikilib.php =================================================================== --- lib/tikilib.php (revision 30284) +++ lib/tikilib.php (working copy) @@ -6001,7 +6001,7 @@ // Links with description - preg_match_all("/\(([a-z0-9-]+)?\(($page_regex)\|([^\)]*?)\)\)/", $data, $pages); + preg_match_all("/\(([a-z0-9-]+)?\(($page_regex)\|([^\)]*?\)?)\)\)/", $data, $pages); Index: lib/setup/wiki.php =================================================================== --- lib/setup/wiki.php (revision 30284) +++ lib/setup/wiki.php (working copy) @@ -12,7 +12,7 @@ -else $page_regex = '([^\n|\(\)])((?!(\)\)|\||\n)).)*?'; +else $page_regex = '([^\n|\(\)])((?!(\)\)|\||\n)).)*?\)?';
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3610
Created
Monday 25 October, 2010 18:50:24 UTC
by Nelson Ko
LastModif
Monday 25 October, 2010 18:57:07 UTC


Show PHP error messages