Merged [4773] from olau@iola.dk:
Encode uploaded charter text with UTF-8 to avoid crashing on Unicode content
- Legacy-Id: 4802
Note: SVN reference [4773] has been migrated to Git commit 2f48dfc713
This commit is contained in:
parent
ee2878aa7b
commit
d23a769dd9
|
@ -331,7 +331,7 @@ class UploadForm(forms.Form):
|
|||
if self.cleaned_data['txt']:
|
||||
destination.write(self.cleaned_data['txt'])
|
||||
else:
|
||||
destination.write(self.cleaned_data['content'])
|
||||
destination.write(self.cleaned_data['content'].encode("utf-8"))
|
||||
|
||||
@role_required('Area Director','Secretariat')
|
||||
def submit(request, name=None, acronym=None, option=None):
|
||||
|
|
Loading…
Reference in a new issue