encodeUrl Function Bug

encodeUrl Function Bug

The space character is being encoded incorrectly.  It is being encoded as a + (plus character).  It should be encoded as a percent sign 20 .  I have not checked all the other characters, so I can't say if there are any other characters that are being encoded incorrectly.

Test Case:

alert(encodeUrl(" "));

This produces a plus sign instead of percent sign 20 .

This bug causes all string parameters passed to subforms to fail if the strings contains a space character.