Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could this be an improper implementation in CGI::Ajax

Status
Not open for further replies.

lcs01

Programmer
Aug 2, 2006
182
US
I have been playing with CGI::Ajax these days. Lately, I noticed my code always caused an error:

... returning Bad Request status 400

Then I found out that the error was due to I named one of CGI variable names as 'fname', meaning 'First Name'. Unfortunately, this CGI variable name 'fname' conflicts with a hard coded variable name in Ajax.pm. you may refer to this site for more details:

So, I renamed my variable name something else but 'fname'. Then my code works just fine!

I would say that Ajax.pm should not have hard coded a variable name like this. Or CPAN should have made 'fname' as a reserved name for Ajax.pm.

What do you guys think?
 
A bit naive for an AJAX module to hardcode a filename reference as fname, with that being a popular contraction of firstname.

Definitely something to let the author know about.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top