Work-around to handle special chars in action ... currently to be able to match {userId} in hint creation/assignment for IDOR

This commit is contained in:
Jason White 2017-06-27 10:24:38 -04:00
parent dd18e68660
commit 89e2fc109c

View File

@ -77,7 +77,7 @@ function($,
filterHint: function(endpoint) {
var self = this;
_.each(this.collection.models, function(hintModel) {
if (endpoint.indexOf(hintModel.get('assignmentPath')) > -1) {
if (endpoint.indexOf(hintModel.get('assignmentPath')) > -1 || decodeURIComponent(endpoint).indexOf(hintModel.get('assignmentPath')) > -1) {
self.hintsToShow.push(hintModel.get('hint'));
}
});