:: Forum >> Version 2 >>

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 ijnamevaluedata ""params this._parameters.split(" ");
for (
i=1i<params.lengthi++){
    
name params[i];
    
value this["_" name "Parameter"];
    if (
typeof value == "function") { value value(); }
    if (
typeof value == "object" && value.constructor == Array){
        for (
j=0j<value.lengthj++){
            
data += encodeURIComponent(name) + "=" encodeURIComponent(value[j]) + "&";
        }
    }
    else {
        
data += encodeURIComponent(name) + "=" encodeURIComponent(value) + "&";
    }
}
 
Sudhaker Raj
Friday, April 7, 2006
Yes, agree, thats a good idea.
Alex (ActiveWidgets)
Friday, April 7, 2006



This topic is archived.

Back to support forum

Forum search