Issue Bug Closed

#54304Missing encoding in flexforms IRRE javascript

Alexey Gafiulov 12/10/13, 15:42 updated 10/02/18, 12:09

Description

AJAX IRRE requests are sending context property. This property is json-encoded string, which could contain special chars.
Parameters set for AJAX request is not properly encoded, which is causing failure during verification.

Bug is in function jsfunc.inline.js, method “makeAjaxCall”.

urlParams += ‘&ajax[context]=’ + Object.toJSON(context)

should be

urlParams += ‘&ajax[context]=’ + encodeURIComponent(Object.toJSON(context));

Reviews 3