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

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Jun 30, 2010

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

This comment has been minimized.

sqlalchemy-bot commented Feb 21, 2011

Changes by Michael Bayer (@zzzeek):

  • removed labels: compiler
  • added labels: runtime
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Jan 16, 2012

Michael Bayer (@zzzeek) wrote:

thanks for the patch! 96998dd

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Jan 16, 2012

Changes by Michael Bayer (@zzzeek):

  • set milestone to "0.6"
  • changed status to closed
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Mar 30, 2012

Michael Bayer (@zzzeek) wrote:

Milestone 0.6 deleted

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Mar 30, 2012

Changes by Michael Bayer (@zzzeek):

  • removed milestone (was: "0.6")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment