in reply to upload.cgi my script is bugged

One other comment in addition to DamnDirtyApe's excellent post - you should set the POST_MAX to a reasonable number. Otherwise someone could upload a 20GB file filling your drive, effectively creating a DOS attack.

$CGI::POST_MAX = 1024 * 1000 # 1MB

You mentioned you are new to programming Perl, so for dealing with CGI applications I would highly recommend using Ovid's CGI::Safe module to help catch some security issues you may miss.



grep
Just me, the boy and these two monks, no questions asked.

Replies are listed 'Best First'.
Re: Re: upload.cgi my script is bugged
by Anonymous Monk on Aug 12, 2002 at 01:19 UTC
    Thanks for pointing this out, grep Rainer