Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Any security holes?by marto (Cardinal) |
on Jun 28, 2022 at 08:57 UTC ( [id://11145129]=note: print w/replies, xml ) | Need Help?? |
Security aside
Why not have open tell you why something failed? ...or die "File append failure: $!";
Why are you adding this for every entry? There should be a single Content-Type header. HTML files don't need a content type header, but should be valid, what you're writing isn't. It'd make a lot more sense to store these values in a database, and display using a template. It looks like you're getting started, I'd suggest not using CGI, if you want to make web development fun and avoid footguns I'd suggest looking at Mojolicious::Lite (Tutorial) with DBD::SQLite, also CGI::Alternatives.
In Section
Seekers of Perl Wisdom
|
|