From: Reini U. <ru...@x-...> - 2006-08-19 17:26:14
|
Sabri LABBENE schrieb: > Hi, > In the PhpWikiAdministration section, I found some broken links: > > * PhpWikiAdministration/Remove > * PhpWikiAdministration/Rename > * PhpWikiAdministration/Replace > These links are generated by the following string in PhpWikiAdministration page: > [/Remove] | > [/Rename] | > [/Replace] | ... > > The computed link for these pages is 'https://server_domain:port/pagename' > Example : 'https://server_domain:port/Rename' > Following this link gives a "Sorry page not found" error message. > > I think that the correct link should be something like this: > > 'https://server_domain:port/<path_to_phpwiki>/index.php?pagename=PhpWikiAdministration/Rename' > > I entered the following string in the SandBox page: > [/my_page] > The constructed link was : 'https://server_domain:port/my_page' > > Does any body knows how can I fix this ? > Help will be too much apreciated. This was broken with a patch by Joel Schaubert introducing / in a [link] as absolute location. I'll revert this patch. This should be solved differently. The whole paragraph below can be commented out. lib/InlineParser.php: /* Relatives links by Joel Schaubert. * Recognize [../bla] or [/bla] as relative links, without needing http:// * but {/link] only if SUBPAG_SEPERATOR is not / */ if (SUBPAGE_SEPARATOR == '/') { if (preg_match('/^\.\.\//', $link)) { return new Cached_ExternalLink($link, $label); } } else if (preg_match('/^(\.\.\/|\/)/', $link)) { return new Cached_ExternalLink($link, $label); } |