PITS /
00429: Pagelist exclusion bug, and its fix
Summary: Pagelist exclusion bug, and its fix
Created: 2005-04-30 03:59
Status: Closed - fixed in 2.0.beta36
Category: Bug
Assigned:
Priority: 3
Version: 2.0.beta35
OS: Apache 1.3.24 Win32 (local testing)
Description: Following the pagelist docs I added
(:pagelist fmt=group -Main :)
and got a load of errors because of this line:
pagelist.php, line 116
foreach((array)@$opt['-'] as $i) { $exclp[] = '!'.preg_quote($i, '!').'/i'; }
Should be
foreach((array)@$opt['-'] as $i) { $exclp[] = '!'.preg_quote($i, '!').'!i'; }
The slash in '\i'
doesn't match the bang '!'
otherwise.