From: Michael L. <mi...@la...> - 2006-07-10 13:14:32
|
I posted a request for comments on the Yahoo blosxom user list, that suggested the attached patch. Since feedback was non-existant, I'm posting the patch, along with the original message to explain what it's for. Comments welcome... Btw, since the other patches I proposed haven't made it into CVS (yet?), I created it against the vanilla CVS version. So it won't apply without fuzz once my other patches are in. The 'redirect' plugin mentioned in the post below is attached too, although it's dead simple. Just in case, s/b wants to go the SSI way too. Mike ---------- Original post on blosxom-users ---------- Hey, I'm still dabbling with the POST problem when running blosxom as serverside include. The solution I've come to now would look like this: * patch blosxom, so it exports a new variable, comparable with $url, that points directly to the real /cgi-bin/ location, circumventing the SSI, so that can be used as target address for POST requests * create a plugin, that redirects back into the SSI when blosxom is directly hit in the /cgi-bin directory Example: I have a blog integrated in my site under /blog/. Blosxom is integraded via <!--#include virtual="/cgi-bin/blosxom.cgi?$PATH_INFO/$QUERY_STRING" --> In the writeback-flavour, I use the newly created blosxom variable "$non_ssi_url" instead of "$url" to address the 'action' for the form. If the form is submitted, blosxom is called directly, and thus the POST data is not lost (as would be when called via the SSI). The writeback plugin can do its thing, saving the message, and my new 'redirect' plugin makes blosxom skip all other actions and prints a redirect header back to the originating SSI page. Has anybody any ideas, if that makes sense, or is there perhaps a better solution? Going completely non-SSI is absolutely no option though. ---------- Original post on blosxom-users ---------- -- Well, then let's give that Java-Wussie a beating... (me) -=+ Join Cologne.pm at http://cologne.pm.org +=- Michael Lamertz | mla...@pe... Sandstr. 122 | http://www.perl-ronin.de 50226 Frechen | +49 171 6900 310 (mobile) Germany | +49 2234 205947 (private) Michael Lamertz | mi...@la... Sandstr. 122 | http://www.lamertz.net 50226 Frechen | +49 171 6900 310 (mobile) Germany | +49 2234 204947 (private) Michael Lamertz | +49 2234 204947 / +49 171 6900 310 Sandstr. 122 | mi...@la... 50226 Frechen | http://www.lamertz.net Germany | http://www.perl-ronin.de |