Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: http POST replies

by SFLEX (Chaplain)
on Aug 19, 2008 at 12:29 UTC ( [id://705199]=note: print w/replies, xml ) Need Help??

in reply to http POST replies

Like everyone said above me CGI or a module alike for your form inputs, but as i look at your code your getting the file name from a form input so using taint or make sure that name does not go out of its boundary's.

Unless you are 100% sure that only trusted people will be using that code only.

Replies are listed 'Best First'.
Re^2: http POST replies
by Anonymous Monk on Aug 19, 2008 at 12:38 UTC
    Another way is to generate (perhaps with Data::UUID) a safe filename (ex fooBAR), and create associated metadata file (fooBAR.meta) that contains uploaded name, uploader ...

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://705199]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-06-15 20:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.