Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AJAX fix #72

Closed
farconada opened this issue Oct 12, 2016 · 0 comments
Closed

AJAX fix #72

farconada opened this issue Oct 12, 2016 · 0 comments

Comments

@farconada
Copy link

Hi

Always IMHO:

In your JS files you have a condition

// Transmit parameter to the ajax request from the main URL.
var keptParameters = ['id', 'L'];
 if (parameterName.indexOf('tx_vidifrontend_pi1[matches]') > -1 || $.inArray(parameterName, keptParameters) ) {
              data[decodeURI(parameterName)] = parameterValue;
 }

Your condition "$.inArray(parameterName, keptParameters)" evalutates to "0" that is "false" and in consecuence you dont add the id parameter to the ajax url and your security validations returns an error

you should change your condition with $.inArray(parameterName, keptParameters) > -1

Hope to hear from you

Fernando

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant