Skip to content

Commit

Permalink
Merge pull request #1259 from GSA/alert-autofix-45
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 45: Incomplete string escaping or encoding
  • Loading branch information
km719 authored Dec 16, 2024
2 parents 1ad63ac + 744c4d1 commit f2064cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/facets/facets-result/facets-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// Inserting the attribute to open a link in a new tab on each link
let relevant_course = item.relevant_courses[i];
if (typeof (relevant_course) === 'string' && relevant_course.indexOf('">') >= 0) {
relevant_course = relevant_course.replace('>', ' target="_blank" >');
relevant_course = relevant_course.replace(/>/g, ' target="_blank" >');
}
coursesMarkup += '<li role="listitem" class="card-content-color li-width">' + relevant_course + '</li>';
}
Expand Down

0 comments on commit f2064cf

Please sign in to comment.