Skip to content

Commit

Permalink
fix: solved a vulnerability in table names
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jul 13, 2021
1 parent 14d5842 commit 5c855a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/components/WorkspaceExploreBarSchema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ export default {
this.changeBreadcrumbs(payload);
},
highlightWord (string) {
string = string.replaceAll('<', '&lt;').replaceAll('>', '&gt;');
if (this.searchTerm) {
const regexp = new RegExp(`(${this.searchTerm.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'gi');
return string.replace(regexp, '<span class="text-primary">$1</span>');
Expand Down

0 comments on commit 5c855a5

Please sign in to comment.