Skip to content

Commit

Permalink
Stuff error message to prevent IE from consuming it
Browse files Browse the repository at this point in the history
  • Loading branch information
alexschiller authored and felliott committed Oct 24, 2016
1 parent 489e72a commit 334a3da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mfr/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def as_html(self):
return '''
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<div class="alert alert-warning" role="alert">{}</div>
<div style="display: none;">This text and the text below is only presented because IE consumes error messages below 512 bytes</div>
<div style="display: none;">Want to help save science? Want to get paid to develop free, open source software? Check out our openings!</div>
'''.format(self.message)


Expand Down

0 comments on commit 334a3da

Please sign in to comment.