Skip to content

Commit

Permalink
Strips syn synchronous idle ctrl-v unicode before pdfgen.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvind-wedoe committed Apr 26, 2022
1 parent fac3510 commit 5d845a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/no/nav/klage/util/TextUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fun sanitizeText(input: String): String {
result = remove0002(result)
result = remove0008(result)
result = remove000B(result)
result = remove0016(result)
return result
}

Expand All @@ -28,3 +29,7 @@ private fun remove0008(input: String): String {
private fun remove000B(input: String): String {
return input.replace("\u000B", "")
}

private fun remove0016(input: String): String {
return input.replace("\u0016", "")
}

0 comments on commit 5d845a2

Please sign in to comment.