From: Reini U. <ru...@x-...> - 2006-08-23 06:37:17
|
Sabri LABBENE schrieb: > "Reini URBAN wrote:" >> 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=PhpW >>> i >>> kiAdministration/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); >> } > > Sorry, I didn't found exactly the above paragraph in lib/InlineParser.php I > am using phpwiki-1.3.12p2 and this what I found : > > -------------------------------------------------------------------------- > /* Relatives links by Joel Schaubert. > * Recognize [../bla] or [/bla] as relative links, without needing http:// > */ > if (preg_match('/^(\.\.\/|\/)/', $link)) { > return new Cached_ExternalLink($link, $label); > } > -------------------------------------------------------------------------- > Although I commented those lines, I still have the same problem. > > Any other suggestions are welcome. Now edit the page with the wrong links, add a space somewhere and save it. |