Skip to content

Commit

Permalink
fix - xss security on tutor dropdown select
Browse files Browse the repository at this point in the history
  • Loading branch information
harunollyo committed Aug 28, 2023
1 parent c85fc65 commit d156d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/react/front/_select_dd_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ window.selectSearchField = (selectElement) => {
Array.from(options).forEach((item) => {
optionsList += `
<div class="tutor-form-select-option">
<span tutor-dropdown-item data-key="${item.value}" class="tutor-nowrap-ellipsis" title="${item.text}">${item.text}</span>
<span tutor-dropdown-item data-key="${item.value}" class="tutor-nowrap-ellipsis" title="${tutor_esc_html(item.text)}">${tutor_esc_html(item.text)}</span>
</div>
`;
});
Expand Down

0 comments on commit d156d6f

Please sign in to comment.