3.2.0

Bug report: missing encodeURIComponent


Attribute name will rarely have special characters, but you never know. Please add encodeURIComponent function for name as well.

--- request.js ---
var i, j, name, value, data = "", params = this._parameters.split(" ");
for (i=1; i<params.length; i++){
    name = params[i];
    value = this["_" + name + "Parameter"];
    if (typeof value == "function") { value = value(); }
    if (typeof value == "object" && value.constructor == Array){
        for (j=0; j<value.length; j++){
            data += encodeURIComponent(name) + "=" + encodeURIComponent(value[j]) + "&";
        }
    }
    else {
        data += encodeURIComponent(name) + "=" + encodeURIComponent(value) + "&";
    }
}
Sudhaker Raj
April 7,
Yes, agree, thats a good idea.
Alex (ActiveWidgets)
April 7,

This topic is archived.

See also:


Back to support forum