in reply to [SOLVED] Unwanted parameter when executing CGI scripts
Well, there is more misbehavior in CGI.pm. For example, if we call
/cgi-bin/script.pl?keywords=blathen $q->url_param contains the key "keywords", but the respective value is empty. That means that you can't pass a parameter named "keywords" via query string if you use $q->url_param. The value of the "keywords" parameter will just be overwritten by CGI.pm.
Due to the problems mentioned in this thread, and due to the problem described above, I dumped CGI.pm and now parse the query string myself (with the help of uri_unescape). My code is now working like expected.
Regards,
Nocturnus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [SOLVED] Unwanted parameter when executing CGI scripts
by Anonymous Monk on Jan 07, 2013 at 09:14 UTC | |
by Nocturnus (Scribe) on Jan 07, 2013 at 10:42 UTC |