mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Sanitize html using galaxy.util.sanitize_html (which in turn calls bleach with appropriate configuration) in message.mako
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<%!
|
||||
import bleach
|
||||
from galaxy.util.sanitize_html import sanitize_html
|
||||
|
||||
def inherit(context):
|
||||
if context.get('use_panels'):
|
||||
@@ -63,5 +63,5 @@
|
||||
if status not in ("danger", "info", "success", "warning"):
|
||||
status = "info"
|
||||
%>
|
||||
<div class="message mt-2 alert alert-${status}">${_(bleach.clean(msg))}</div>
|
||||
<div class="message mt-2 alert alert-${status}">${_(sanitize_html(msg))}</div>
|
||||
</%def>
|
||||
|
||||
Reference in New Issue
Block a user