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

Comments

@sqlalchemy-bot
Copy link

@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
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Feb 21, 2011

Changes by Michael Bayer (@zzzeek):

  • removed labels: compiler
  • added labels: runtime
@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Jan 16, 2012

Michael Bayer (@zzzeek) wrote:

thanks for the patch! 96998dd

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot sqlalchemy-bot commented Jan 16, 2012

Changes by Michael Bayer (@zzzeek):

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

@sqlalchemy-bot sqlalchemy-bot commented Mar 30, 2012

Michael Bayer (@zzzeek) wrote:

Milestone 0.6 deleted

@sqlalchemy-bot
Copy link
Author

@sqlalchemy-bot 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant