We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From freesound.js#L84-87...
if (xhr.readyState === 4 && [200,201,202].indexOf(xhr.status)>=0){ var data = eval("(" + xhr.responseText + ")"); if(success) success(wrapper?wrapper(data):data); }
I believe xhr.responseText is a JSON string, in which case JSON.parse can be used to safely parse the data. Is there a reason eval is used instead?
xhr.responseText
JSON.parse
eval
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From freesound.js#L84-87...
I believe
xhr.responseText
is a JSON string, in which caseJSON.parse
can be used to safely parse the data. Is there a reasoneval
is used instead?The text was updated successfully, but these errors were encountered: