On Sun, 30 Mar 2003 at 22:43, Cool Hand Luke opined: [reply cc'd to group]
CHL:> and to offer one example as an answer to your question, how would you CHL:> parse a binary file uploaded to your script using your split(/[&;]/, CHL:> $submission) code? CHL: CHL:Not parsing any binaries, just simple form data, so that doesn't really CHL:apply. just because you don't need to parse any binaries doesn't mean your users won't try to submit one. don't forget anyone can create any kind of form that posts to your cgi. so there's nothing stopping me from creating a form like this: <form method="post" action="http://coolhandlukesite/cgi-bin/script.cgi" enctype="multipart/form-data"> <input type="file" name="hugefile"> <input type="submit"> </form> and seeing what happens when it's submitted. of course, if you were using CGI.pm, then you'd probably have something like this: use CGI; $CGI::POST_MAX = 1024 * 5; # allow max post of 5 kilobytes $CGI::DISABLE_UPLOADS = 1; # no file uploads accepted here to handle this type of post. ps - don't forget to cc the group when you reply to a message so everyone can benefit from the discussion. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]