On BNET: Online porn struggles for profits
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 1 of 7:
Next »
Ugh! Bad advice!
1) He will also need to setup Apache to actually run CGI code in the appropriate directories.

2) That code you presented, while it works dandy (I used that code a dozen times myself), he should be using CGI.pm, it filters out a lot of gunk.

This is one of the problems with Perl/CGI, most of us learned it back before people were trashing each other's sites, and it was not originally designed to handle web pages specifically. While Perl is a rocking language for text processing, it simply does not natively understand the concept of a web page. Treating the GET/POST data as a string to be reg'exd at leaisure, for example, sets you up for all kinds of problems. CGI.pm handles these things automagically (another thing I always liked about Perl, best module library on the planet, plus a tendency towards automagic).

Use CGI.pm, save yourself some nightmares and potential security risks.

J.Ja
Posted by: Justin James   Posted on: 10/21/05 You are currently: a Guest | Members login | Terms of Use

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

Ugh! Bad advice!  Justin James | 10/21/05
CGI.pm  D. T. Schmitz | 10/21/05
Better advice  RestonTechAlec | 10/21/05
Cool!  murph_z ZDNet Moderator | 10/21/05
Advice is cheap  boobasaurus | 10/21/05
You kidding right?  FreeBSD | 10/25/05
Perl  MarkieMark | 11/02/05

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
advertisement

SmartPlanet

Click Here