[Pmwiki-users] Re: Edit via https only

Albi Rebmann albi
Thu May 20 15:54:47 CDT 2004


Albi Rebmann schrieb:

>> Now I found one small problem. When I create a new page I get the 
>> following:
>> https://www.cvmx.de/mitarbeiter/pmwiki/pmwiki.php//?action=edit
>> The link that was shown on the ? is 
>> http://www.life.de/pmwiki/pmwiki.php/LifeNet/JavaChat?action=edit
>>
>> It looks like on switching to https it is missing the part 
>> "LifeNet/JavaChat", when I add it by hand it is fine.
>>
>> Any idea why it is missing when I want to create a new page?
> 
> 
> Anybody any idea?

OK, I found the problem, for me it looks like a bug, but I'm no php 
specialist:

function Redirect($pagename,$urlfmt='$PageUrl') {
   global $RedirectDelay,$ScriptUrl,$DefaultPage;
   clearstatcache();
#  if (!PageExists($pagename)) $pagename=$DefaultPage;

I removed last line, now redirect works fine even by switching to https.

One more thing is necessary to make upload work with https too:
include_once('scripts/sessionauth.php');


ALBI...




More information about the pmwiki-users mailing list