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
- 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 clipboardIndex: 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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3610
- Created
- Monday 25 October, 2010 18:50:24 UTC
by Nelson Ko - LastModif
- Monday 25 October, 2010 18:57:07 UTC