Any suggestions on the best method to make this 1-attachment process into multiple attachments?
The best way is probably to refactor all of the (broken) custom form-parsing code to use a secure, working parser such as that in CGI or CGI::Simple. Honestly, I'm not sure this code is worth it. It has problems.
The "easiest" way to do this is probably to loop over all of the potential hash keys in %FORM you expect to contain uploaded files, setting $FORM{file} to each in turn, and calling this piece of code as a subroutine.
In reply to Re: YaBB mod patch
by chromatic
in thread YaBB mod patch
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |