Hi there. I have noticed that page names with a number in them, i.e. MOG1 or Windows2000, show no backlinks.
In other words, if I link from HomePage to MOG1, then open MOG1 and click on the Backlinks button, the result says there are no backlinks.
I've just fixed this in CVS, I think. The appropriate patch is:
diff -u -r1.118 -r1.119 --- phpwiki/phpwiki/lib/stdlib.php 2002/09/01 16:18:52 1.118 +++ phpwiki/phpwiki/lib/stdlib.php 2002/09/14 22:58:06 1.119 @@ -1,4 +1,4 @@ -<?php //rcs_id('$Id: stdlib.php,v 1.118 2002/09/01 16:18:52 rurban Exp $'); +<?php //rcs_id('$Id: stdlib.php,v 1.119 2002/09/14 22:58:06 dairiki Exp $');
/* Standard functions for Wiki functionality @@ -321,7 +321,7 @@ // remove escaped '[' $line = str_replace('[[', ' ', $line); // remove footnotes - $line = preg_replace('/[\d+]/', ' ', $line); + $line = preg_replace('/\[\d+\]/', ' ', $line); // bracket links (only type wiki-* is of interest) $numBracketLinks = preg_match_all("/\[\s*([^\]|]+|)?\s*(\S.*?)\s*\]/",
Log in to post a comment.
Hi there. I have noticed that page names with a number in them, i.e. MOG1 or Windows2000, show no backlinks.
In other words, if I link from HomePage to MOG1, then open MOG1 and click on the Backlinks button, the result says there are no backlinks.
I've just fixed this in CVS, I think. The appropriate patch is:
diff -u -r1.118 -r1.119
--- phpwiki/phpwiki/lib/stdlib.php 2002/09/01 16:18:52 1.118
+++ phpwiki/phpwiki/lib/stdlib.php 2002/09/14 22:58:06 1.119
@@ -1,4 +1,4 @@
-<?php //rcs_id('$Id: stdlib.php,v 1.118 2002/09/01 16:18:52 rurban Exp $');
+<?php //rcs_id('$Id: stdlib.php,v 1.119 2002/09/14 22:58:06 dairiki Exp $');
/*
Standard functions for Wiki functionality
@@ -321,7 +321,7 @@
// remove escaped '['
$line = str_replace('[[', ' ', $line);
// remove footnotes
- $line = preg_replace('/[\d+]/', ' ', $line);
+ $line = preg_replace('/\[\d+\]/', ' ', $line);
// bracket links (only type wiki-* is of interest)
$numBracketLinks = preg_match_all("/\[\s*([^\]|]+|)?\s*(\S.*?)\s*\]/",