Different handling of query params in Py 2.3 and 2.4
I noticed this problem with CherryPy 2.2.1 (as used in TurboGears).
Not sure whether the CherryPy 2.2 branch is still supported and whether this problem still exists in CherryPy 3, but I'll report it anyway.
The query string "?x=&y=" results in x and y becoming empty strings which is ok. However, the (actually illegal) query string "?x&y" is treated differently under Python 2.3 and 2.4/2.5. With Python 2.3, the values x and y are ignored, while with Python 2.4/2.5 they are empty strings. (To increase the confusion, just found an old patch
#119 according to which x and y should be set to True in this case.) I think setting x and y to an empty string in this case is the best solution because it allows for nicer URLs for boolean parameters (I would not expect True in this case). Anyway, CherryPy should behave consistently for all Python versions.