Skip to content

Commit 1440b60

Browse files
authored
Merge pull request #11539 from internetarchive/fix-possible-xss
Restrict flash alert rendering
2 parents c8cc3be + 3fa3c9e commit 1440b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openlibrary/templates/site/body.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$#print errors (hidden by default as styles are loaded via JS)
2828
<div class="flash-messages">
2929
$for flash in get_flash_messages():
30-
<div class="$flash.type"><span>$:flash.message</span></div>
30+
<div class="$flash.type"><span>$flash.message</span></div>
3131
</div>
3232
$# Announcement banner will only be rendered if announcement and storage_key variables are set.
3333
$# Be sure to escape any single quotes inside of the announcement HTML string.

0 commit comments

Comments
 (0)