You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inserting dynamic parameters is currently done with loop + regexp + string.replace this can cause data leakage under certain circumstances.
The fix would be to use a replace callback, something like this:
path=path.replace(newRegExp('{([^}]+)}','g'),function(match,prop){returnparams[prop];// perhaps URL encode too// perhaps throw error if property does not exist});
The text was updated successfully, but these errors were encountered:
Inserting dynamic parameters is currently done with loop + regexp +
string.replace
this can cause data leakage under certain circumstances.The fix would be to use a replace callback, something like this:
The text was updated successfully, but these errors were encountered: