logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Wrong link to some admin pages: msg#00030

Subject: Re: Wrong link to some admin pages
"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.

Regards,
Sabri.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>