Loading...
 
Skip to main content

Plugin WantedPages does not correctly process page names ending with a close parenthesis

Status
Closed
Subject
Plugin WantedPages does not correctly process page names ending with a close parenthesis
Version
1.8.x
Category
  • Bug
Feature
Wiki Plugin (extends basic syntax)
Resolution status
New
Submitted by
Alan
Lastmod by
Alan
Rating
(1)
Description

Plugin WantedPages leaves off the close parenthesis at the end of a page name, marking that page as "does not exist". It does this regardless of the WantedPages table style.

I have a workaround that may work as a solution to be added to the regular codebase.

Workaround

Edit lib/wiki-plugins/wikiplugin_wantedpages.php.

Find these lines (noting that np does not have a backslash):

Copy to clipboard
$linkin = (! $debug) ? '((' : '~\np~'; // this is how toPages are handled $linkout = (! $debug) ? '))' : '~\np~';

Add a space after the open parentheses in the quotation, and a space before the close parentheses in the quotation like so (without changing np):

Copy to clipboard
$linkin = (! $debug) ? '(( ' : '~\np~'; // this is how toPages are handled $linkout = (! $debug) ? ' ))' : '~\np~';


Now find this line:

Copy to clipboard
$row[1] = '((' . $row[1] . '))'; // fromPages

Add spaces inside the parentheses, same as before:

Copy to clipboard
$row[1] = '(( ' . $row[1] . ' ))'; // fromPages
Importance
5
Easy to solve?
10 easy
Priority
50
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6684
Created
Wednesday 06 June, 2018 04:30:19 UTC
by Alan
LastModif
Wednesday 26 February, 2020 16:51:13 UTC


Show PHP error messages