Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html_error_template() should escape the exception name and message #142

Closed
sqlalchemy-bot opened this issue Jun 30, 2010 · 5 comments
Closed
Labels
bug Something isn't working low priority runtime

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by Anonymous

from mako.template import Template
from mako.exceptions import html_error_template

x = Template("""
X:
<% raise Exception('<span style="color:red">Foobar</span>') %>
""")

try:
    x.render()
except:
    # <h3>Exception: <span style="color:red">Foobar</span></h3>
    print html_error_template().render(full=False, css=False)

Attachments: 142.patch

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • removed labels: compiler
  • added labels: runtime

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

thanks for the patch! 96998dd

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • set milestone to "0.6"
  • changed status to closed

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

Milestone 0.6 deleted

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • removed milestone (was: "0.6")

@sqlalchemy-bot sqlalchemy-bot added bug Something isn't working low priority runtime labels Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority runtime
Projects
None yet
Development

No branches or pull requests

1 participant