[pmwiki-devel] bug in ResolvePageName()?

Mike Stop Continues mike at mikestop.com
Wed Mar 2 14:08:10 CST 2011


I believe the last line of ResolvePageName() is in error. It's line 653 in
the current release:
   return MakePageName($DefaultPage, "$pagename.$pagename");

Shouldn't it actually be?
   return MakePageName($DefaultPage, "$pagename.$DefaultName");

This line is responsible for what the default page is for new groups, and
should follow the setting of $DefaultName, shouldn't it?

When you enter
    http://example.com/NewGroup
You're at NewGroup/$DefaultName

When you create a new group when using newpagebox or even CleanURLs, e.g.
   http://example.com/NewGroup?action=edit
what page do you expect to be on?

Mike Stop Continues
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20110302/b98a78d5/attachment.html>


More information about the pmwiki-devel mailing list