httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roori bar" <>
Subject Re: mod_upload, SetInputFilter breaks php's $_POST
Date Sat, 14 Jun 2008 14:53:43 GMT
thanks for the fast response,
with few hours of tweaking and few input filters guides, i managed to make
mod_upload let the PHP parser work ...
after that there were some issues with the actual parsing of mod_upload,
couldn't really figure it out..
but it didn't bother my requirement because i only needed the first few
fields of the post, after X bytes i removed the filter.

thanks a lot for your great work, if you'd make those modifications and
publish it - people who use PHP,
could use that module+PHP and add real captcha verifications.. without the
limitation of PHP's $_POST (triggers only after the form been submitted)

On Sun, Jun 8, 2008 at 9:02 PM, Nick Kew <> wrote:

> On Sun, 8 Jun 2008 17:15:18 +0300
> "roori bar" <> wrote:
> > hey
> > i'm pretty much a beginner with the APR world.. if anybody could
> > assist, will be highly appreciated.
> >
> > while using SetInputFilter of mod_upload for example...
> > it breaks php's $_POST .
> Yep, that sounds likely.  mod_upload is a parser designed to
> work with applications that consume a POST body.  To use that
> in PHP, you'd want a PHP handler to provide the table
> produced by mod_upload in php's $_POST.  But I believe PHP
> provides its own POST parsers, separate from mod_upload.
> You can probably use mod_request to read the data twice.
> But that's likely to mean you're doing the same work twice over.
> --
> Nick Kew
> Application Development with Apache - the Apache Modules Book

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message