0001-manager-decode-base64-content-as-ASCII-44802.patch
src/authentic2/manager/user_views.py | ||
---|---|---|
694 | 694 |
}) |
695 | 695 |
ctx['help_columns'] = help_columns |
696 | 696 |
example_data = u','.join(column['name'] + (' key' if column['key'] else '') for column in help_columns) + '\n' |
697 |
example_url = 'data:text/csv;base64,%s' % base64.b64encode(example_data.encode('utf-8')) |
|
697 |
example_url = 'data:text/csv;base64,%s' % base64.b64encode(example_data.encode('utf-8')).decode('ascii')
|
|
698 | 698 |
ctx['form'].fields['import_file'].help_text = format_html( |
699 | 699 |
_('{0}. {1} <a download="{3}" href="{2}">{3}</a>'), |
700 | 700 |
ctx['form'].fields['import_file'].help_text, |
701 |
- |