Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

Commit c3a6ae5

Browse files
committed
HTML-escape IMPRINT_TEXT to prevent the admin from breaking the HTML output
1 parent d3aa674 commit c3a6ae5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 0.27b0 (2020-07-16)
22

33
* introduced `IMPRINT_TEXT` to change the default text of the imprint link
4+
* HTML-escape `IMPRINT_TEXT` to prevent the admin from breaking the HTML output
45
* updated jQuery to version 3.5.1
56

67
# 0.26b0 (2020-05-07)

template/header.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<li<?php if (empty(SECRET_URI)) { ?> class="active"<?php } ?>><a href="/">Share a secret.</a></li>
4242
<li<?php if (0 === strcmp(SECRET_URI, HOW_PAGE_NAME)) { ?> class="active"<?php } ?>><a href="/how">How does this service work?</a></li>
4343
<li<?php if (0 === strcmp(SECRET_URI, PUB_PAGE_NAME)) { ?> class="active"<?php } ?>><a href="/pub">Download the public key.</a></li>
44-
<li<?php if (0 === strcmp(SECRET_URI, IMPRINT_PAGE_NAME)) { ?> class="active"<?php } ?>><a href="/imprint"><?= (defined("IMPRINT_TEXT") && (null !== IMPRINT_TEXT)) ? IMPRINT_TEXT : "Who provides this service?" ?></a></li>
44+
<li<?php if (0 === strcmp(SECRET_URI, IMPRINT_PAGE_NAME)) { ?> class="active"<?php } ?>><a href="/imprint"><?= (defined("IMPRINT_TEXT") && (null !== IMPRINT_TEXT)) ? html(IMPRINT_TEXT) : "Who provides this service?" ?></a></li>
4545
</ul>
4646
</div>
4747
</div>

0 commit comments

Comments
 (0)