Skip to content

Commit

Permalink
sanitize title for fwu contents
Browse files Browse the repository at this point in the history
  • Loading branch information
SteKrause committed May 3, 2023
1 parent 563920d commit bd37a16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schulcloud/fwu/upload_fwu.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ def sanitize_string(self, string: str):
string = string.replace('!', '_')
string = string.replace('/', '_')
string = string.replace('-', '_')
string = string.replace(',', '_')
string = string.replace('–', '_')
string = string.replace('(', '_')
string = string.replace(')', '_')
string = string.replace('&', '_')

return string

Expand Down

0 comments on commit bd37a16

Please sign in to comment.