Skip to content

Commit

Permalink
EW-793 Change three dots in card title
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneRadtke-Cap committed Jun 5, 2024
1 parent 9829632 commit 02bffc4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ export class CommonCartridgeExportMapper {
}

private getTextTitle(text: string): string {
const title = text
.slice(0, 50)
.replace(/<[^>]*>?/gm, '')
.concat('...');
let title = text.slice(0, 50).replace(/<[^>]*>?/gm, '');

Check failure

Code scanning / CodeQL

Incomplete multi-character sanitization High

This string may still contain
<script
, which may cause an HTML element injection vulnerability.
if (text.length > 50) {
title = title.concat('...');
}
return title;
}
}

0 comments on commit 02bffc4

Please sign in to comment.