![]() |
||||
|
|
||||
[Chameleon-dev] [Bug 47] New: [Chameleon] Form parameters should be case-insensitivebugzilla-daemon@www.maptools.org bugzilla-daemon@www.maptools.orgThu, 11 Sep 2003 16:43:51 -0400
|
||||
http://www.maptools.org/bugzilla/show_bug.cgi?id=47
Summary: [Chameleon] Form parameters should be case-insensitive
Product: Chameleon
Version: 1.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: chameleon-dev@lists.maptools.org
ReportedBy: morissette@dmsolutions.ca
We have run many times (way too many times) with clients using chameleon into
issues related to case-sensitivity of FORM parameters. There have already been
several hours wasted on case-sensitivity issues and this is going to be a main
issue for chameleon if we don't do something about this now. I realize that
PHP's $_GET and $_POST arrays are case-sensitive, but the chameleon engine tries
to offer a more user-friendly interface for beginners (non-programmers) and
shouldn't be case-sensitive when accessing form parmaters.
So what I propose is that:
1- In the Chameleon initialization, the $_GET + $_POST arrays are scanned and
all keys in the array are made *lowercase* (I know you use uppercase almost
everywhere, but that's another issue that we can fix at the same time since it
seems that lowercase is the way HTML and XML are going, so Chameleon should
follow that trend too since it relies on those heavily.)
2- All code accessing FORM parameters in chameleon should use the parameter name
in lowercase, or use some method that takes care of the cases abstraction (Sacha
tells me that there is a get() method somewhere that could do that but that is
barely used anywhere)
3- All documentation on widgets and on chameleon should refer to widget
parameters and form parameters as lowercase. I think this was already agreed to
in previous discussions for the widget parameters docs, but the same should be
extended to form parameters docs.
Comments, flames welcome.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |