entryproperties - password makes trouble with URLs

Found a bug? Tell us!!
Post Reply
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

entryproperties - password makes trouble with URLs

Post 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
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: entryproperties - password makes trouble with URLs

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Re: entryproperties - password makes trouble with URLs

Post 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!?
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: entryproperties - password makes trouble with URLs

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply