diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/t0200-security.sh4
1 file changed, 4 insertions, 0 deletions
diff --git a/tests/t0200-security.sh b/tests/t0200-security.sh
index afce715..d3ac472 100644
--- a/tests/t0200-security.sh
+++ b/tests/t0200-security.sh
@@ -100,6 +100,10 @@ test_expect_success 'non-markdown readme without a filter is escaped' '
! grep "<script>alert(2)</script>" tmp
'
+test_expect_success 'non-markdown readme keeps its line structure' '
+ grep "pre class=.plaintext." tmp
+'
+
# --- Auto-submitting selects carry no inline handlers ------------------------
# A Content-Security-Policy without unsafe-inline blocks inline onchange
# handlers, so the forms mark their selects and cgit.js wires them up.