Skip to content

Commit

Permalink
escape row and bulk actions form value in template (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jowilf authored Jan 1, 2025
1 parent bd59d51 commit f1c54e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion starlette_admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.15.0rc3"
__version__ = "0.15.0rc4"

from ._types import ExportType as ExportType
from ._types import RequestAction as RequestAction
Expand Down
2 changes: 1 addition & 1 deletion starlette_admin/templates/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
data-name="{{ action.name }}"
data-submit-btn-text="{{ action.submit_btn_text }}"
data-submit-btn-class="{{ action.submit_btn_class }}"
data-form="{{ action.form }}"
data-form="{{ action.form |forceescape }}"
>
{% if action.icon_class %}
<i class="{{ action.icon_class }} me-2"></i>
Expand Down
2 changes: 1 addition & 1 deletion starlette_admin/templates/row-actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% endif %}
data-submit-btn-text="{{ action.submit_btn_text }}"
data-submit-btn-class="{{ action.submit_btn_class }}"
data-form="{{ action.form }}"
data-form="{{ action.form |forceescape }}"
{% endif %}
data-is-row-action="true"
data-name="{{ action.name }}"
Expand Down

0 comments on commit f1c54e3

Please sign in to comment.