|
Main sidebar
|
PITS /
00117Summary: PmWiki generating null llinks ('/')
Created: 2004-10-27 01:45
Status: Closed - fixed in 2.0.devel19
Category: Bug
From: jr
Assigned:
Priority:
Version: 2.0 dev 17
OS: all
Description: At least, I think it's a bug. Description and example follow. $PageNameChars = '-_~[:alnum:]';
$NamePattern = '[[:upper:]\\d][\\w]*(?:[-~]\\w+)*';
Markup('[[_','<links','/\[\[_([^\|\]]+)\]\]/e',
"'[[' . preg_replace('/~.*$/','',FmtPageName('\$Name',\$pagename)) .
PSS('~$1 | ~$1') . ']]'");
If I write $PageNameChars = '-_~[:alnum:]';
$NamePattern = '[[:upper:]\\d][\\w]*(?:[-~]\\w+)*';
Markup('[[_','<links','/\[\[(_[^\|\]]+)\]\]/e',
"'[[' . preg_replace('/_.*$/','',FmtPageName('\$Name',\$pagename)) .
PSS('$1 | $1') . ']]'");
correctly produces a link to the page PITS.00117_Child. Either it's a bug or something so obvious I can't see it. I get the same problem when using other characters, like a \* instead of _. |