Fix the wiki syntax parser to exclude closing parenthesis from the external URLs links
- Status
- Closed
- Subject
- Fix the wiki syntax parser to exclude closing parenthesis from the external URLs links
- Version
- 18.x
21.x
23.x
24.x
25.x - Category
- Error
- Feature
- Wiki Syntax (text area, parser, external wiki, etc)
- Resolution status
- Fixed or Solved
- Submitted by
- luci
- Volunteered to solve
- luci
- Lastmod by
- luci
- Rating
- Description
When URL is entered in a parenthesis it takes the closing one and includes it in the external link:
(E.g. Google — https://google.com/
)
The expected result would be that the ")" is not included as part of the link.
- Solution
Change line 1277 of
lib/parser/parserlib.php:Copy to clipboard$patterns[] = "#([\n\( ])([a-z0-9]+?)://([^<,\) \n\r]+)#i";
Fixed by in 24.x: https://gitlab.com/tikiwiki/tiki/-/commit/de558ea50cdd3caeca82025943ebe8e27a9cb2d7
- Importance
- 5
- Easy to solve?
- 5
- Priority
- 25
- 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
- 8124
- Created
- Thursday 17 March, 2022 13:34:24 UTC
by luci - LastModif
- Tuesday 12 April, 2022 09:51:58 UTC