Update of /cvsroot/phpwiki/phpwiki/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv618/lib
Modified Files:
stdlib.php
Log Message:
fix for ExtractWikiPageLinks(): didn't care for '[[' escapes and thus detected invalid links
Index: stdlib.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/stdlib.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** stdlib.php 2000/11/11 12:15:35 1.11
--- stdlib.php 2000/11/16 08:52:51 1.12
***************
*** 528,532 ****
for($l = 0; $l < $numlines; $l++)
{
! $line = $content[$l];
$numBracketLinks = preg_match_all("/\[\s*(.+?)\s*\]/", $line, $brktlinks);
for ($i = 0; $i < $numBracketLinks; $i++) {
--- 528,532 ----
for($l = 0; $l < $numlines; $l++)
{
! $line = str_replace('[[', ' ', $content[$l]); // remove escaped '['
$numBracketLinks = preg_match_all("/\[\s*(.+?)\s*\]/", $line, $brktlinks);
for ($i = 0; $i < $numBracketLinks; $i++) {
|