Menu ▾ ▴

#4 Bug & Fix for HttpRequest get(Hashtable)

open
nobody
None
5
2002-01-30
2002-01-30
No

There is a bug in the replaceCommas method in
HttpRequest.

If you have only 1 parameter you wind up with
a url string like:
&x=10
when you should have:
x=10

Here is the diff for the fix against v1.0.0:

718c718,721
< finalStr = finalStr.concat("&");
---
> // +smh 1/28/02 guard against 1 parameter
> if (finalStr.length()>0) {
> finalStr = finalStr.concat("&");
> }

Enjoy!
Steve

Discussion


Log in to post a comment.