X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/538526fc82b771cbc149743f129d8b1ae7e3cba2..159b148e9d37274930d6c0f76c365d333f16fd87:/src/funding/utils.py?ds=inline diff --git a/src/funding/utils.py b/src/funding/utils.py index 580833699..e93d8161d 100644 --- a/src/funding/utils.py +++ b/src/funding/utils.py @@ -10,8 +10,8 @@ from fnpdjango.utils.text import char_map # Punctuation is handled correctly and escaped as needed, # with the notable exception of backslash. sane_in_payu_title = re.escape( - string.uppercase + - string.lowercase + + string.ascii_uppercase + + string.ascii_lowercase + u'ąćęłńóśźżĄĆĘŁŃÓŚŹŻ' + string.digits + ' ' + @@ -25,4 +25,4 @@ def replace_char(m): def sanitize_payment_title(value): - return re.sub('[^%s]' % sane_in_payu_title, replace_char, unicode(value)) + return re.sub('[^%s]' % sane_in_payu_title, replace_char, str(value))