Skip to content

Commit

Permalink
Update StringHelpers.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarDev committed Dec 10, 2023
1 parent d41f8f5 commit c16435b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/packages/js/src/StringHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function isImageDataUrl(url: string) {

export function slug(value: string | undefined) {
if (!value) return undefined;
if (value.length > 1000) return undefined; // Too large to generate slug, avoid DoS
return value
.toLowerCase()
.trim()
Expand Down

0 comments on commit c16435b

Please sign in to comment.