perleager has asked for the wisdom of the Perl Monks concerning the following question:

Hey,

I realized I was using version 2.91 of CGI.pm on a Windows machine runnin active state perl. Does anyone know if my version of CGi.pm supports file uploads and prevents Denial of Service attacks with POST_MAx?

I just ran into a thread on Yahoo Groups where it says to upgrade to 2.93 to use the POST_MAX, previous version may have bugs.

I've been trying to ge tthis post_max and mime-type validation for my upload script for the last 3-4 days and still having no luck. Could it be the version of CGI.pm I'm using?...AHHHH please say no =)

Thanks,
Anthony

Replies are listed 'Best First'.
Re: CGI.pm version supporting POST_Max?
by Anonymous Monk on Mar 19, 2004 at 05:27 UTC
    A lot of changes have been made since 2.91, not sure if any of them really apply to your situation. Try running ppm verify --upgrade CGI on your command line.
      Either ppm is broken, or it's just mine. My CGI is up to date, but my Digest::MD5 is not. Example failure follows. Note that the upgrade fails claiming there is no upgrade when there actually is. I have 2.11 installed, ppm has a 2.27 available.

      C:\Perl\bin>ppm verify Digest-MD5 An upgrade to package 'Digest-MD5' is available. C:\Perl\bin>ppm install Digest-MD5 Version 2.11 of 'Digest-MD5' is already installed. Remove it, or use 'verify --upgrade Digest-MD5'. C:\Perl\bin>ppm verify --upgrade Digest-MD5 Package 'Digest-MD5' is up to date. C:\Perl\bin>ppm verify Digest-MD5 An upgrade to package 'Digest-MD5' is available. C:\Perl\bin>
        Thats weird. When I try searching or querying for Digest-MD5 it has no results. I get Digest-Perl-MD5 though? Not sure if they're the same?

        My CGI.pm says its up to date also when running upgrade CGI in the ppm prompt even though its only really version 2.91.