Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: (Ovid - hand-rolled CGI review) Re: variables not posting?

by dws (Chancellor)
on May 03, 2001 at 21:24 UTC ( [id://77720]=note: print w/replies, xml ) Need Help??


in reply to (Ovid - hand-rolled CGI review) Re: variables not posting?
in thread variables not posting?

Line 2: The semicolon is an alternate delimeter. An agent submits data using that and your code breaks. Of course, since you can't guarantee that the data in $temp isn't corrupt...

I'd like to see some evidence.

Of the various good arguments for using CGI.pm, this one has always struck me as the weakest. The use of a semicolon as an argument delimeter is so effectively deprecated as to be non-existent. When is the last time you heard of any agent using a semicolon as a delimeter (other than a hand-rolled agent whose purpose is to demonstrate that it can be done)? What browsers use a semicolon?

I know of a few public web-based systems that have run for years without encountering a semicolon used as a parameter delimeter. Is that proof that such a thing can never happen? No. Are these systems at risk? No, unless some practical joker decides to hand-roll a request.

  • Comment on Re: (Ovid - hand-rolled CGI review) Re: variables not posting?

Replies are listed 'Best First'.
Re: Re: (Ovid - hand-rolled CGI review) Re: variables not posting?
by merlyn (Sage) on May 04, 2001 at 01:34 UTC
    It's the opposite of deprecated. It's intended to be supported in the future, so if you don't start supporting it now, browsers which use it in the future will break your code.

    -- Randal L. Schwartz, Perl hacker

      It's intended to be supported in the future, so if you don't start supporting it now, browsers which use it in the future will break your code.

      Do I detect the faint scent of some large corporation sneaking this into some specification to guarantee the future obsolescence of everyone else's software? :-(

        No, it's just that the ampersand was a bad choice to use, but the original designers of cgi were doing the best they could. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found