Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv13871
Modified Files:
stdlib.php
Log Message:
ExtractWikiPageLinks now recognizes references of the form [\d+]
Index: stdlib.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/stdlib.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** stdlib.php 2001/01/09 18:22:49 1.20
--- stdlib.php 2001/01/15 12:32:57 1.21
***************
*** 293,296 ****
--- 293,299 ----
$linkname = htmlspecialchars($URL);
$link['link'] = "<a href=\"$ScriptUrl$match[1]\">$linkname</a>";
+ } elseif (preg_match("#^\d+$#", $URL)) {
+ $link['type'] = "reference-$linktype";
+ $link['link'] = $URL;
} else {
$link['type'] = "wiki-unknown-$linktype";
|