Page 1 of 1

entryproperties - password makes trouble with URLs

Posted: Mon Mar 23, 2009 10:52 pm
by stm999999999
I have some problems with serendipity_event_entryproperties:

I use URL Rewriting, so I have an article like
myblog.example/archives/4-pass-test.html
and a static page myblog.example/pages/test.html

Now I use password protection from the plugin.

After entering the pass the protected content is shown, but the URL is not rewritten anymore:

myblog.example/index.php?/archives/4-pass-test.html
myblog.example/index.php?serendipity[subpage]=Pfarrsaal

Re: entryproperties - password makes trouble with URLs

Posted: Tue Mar 24, 2009 11:27 am
by garvinhicking
Hi!

Yeah, a HTTP FORM POST only works to non-rewritten URLs; so there's no way to POST to the rewritten URL. The same, BTW, applies for when you comment to an entry, it also jumps to index.php directly.

Regards,
Garvin

Re: entryproperties - password makes trouble with URLs

Posted: Tue Mar 24, 2009 1:59 pm
by stm999999999
garvinhicking wrote:Yeah, a HTTP FORM POST only works to non-rewritten URLs; so there's no way to POST to the rewritten URL.
Sure?

I use Opera, so I can alter the source code of a webpage on the fly. I change the form to:

Code: Select all

       <div class="serendipity_entry_body">

        <div class="staticpage_password">Diese Seite ist Passwortgeschützt. Bitte geben Sie das geeignete Passwort ein: </div>
        <br /><br />
        <form class="staticpage_password_form" action="http://example.com/pages/seite.html" method="post">
and it worked fine!?

Re: entryproperties - password makes trouble with URLs

Posted: Tue Mar 24, 2009 2:21 pm
by garvinhicking
Hi!
Sure?
It only works for mod_rewrite, not for apache errorhandling. But I do not want to fork the code to handle URL-rewriting differently for those two cases.

Regards,
Garvin