diff options
context:
space:
mode:
Diffstat (limited to 'source/ui-summary.c')
-rw-r--r--source/ui-summary.c13
1 file changed, 5 insertions, 8 deletions
diff --git a/source/ui-summary.c b/source/ui-summary.c
index dacf0f7..197cd07 100644
--- a/source/ui-summary.c
+++ b/source/ui-summary.c
@@ -65,10 +65,9 @@ static int path_within(const char *base, const char *path)
/*
* Returns a path the caller must free, or NULL when the request cannot be
- * served. A null ref means the readme is a file on the server's disk rather
- * than a path inside a ref, and such a readme is confined to its own
- * directory, so one named without a directory has nothing to confine it to
- * and is refused.
+ * served. A null ref means the readme is a file on the server's disk, and
+ * such a readme is confined to its own directory, so one named without a
+ * directory is refused.
*/
static char *resolve_about_path(const char *filename, const char *ref,
const char *path)
@@ -158,10 +157,8 @@ void cgit_print_repo_readme(const char *path)
html("<div id='summary'>");
if (!ctx.repo->about_filter) {
- // With no about-filter configured there is nothing to turn the
- // readme source into safe HTML, so it is escaped rather than
- // served raw, which would let an untrusted repository put
- // script on this page.
+ // With no about-filter there is nothing to turn the readme
+ // into safe HTML, so it is escaped rather than served raw.
html("<pre class='plaintext'>");
if (ref) {
cgit_print_file(filename, ref, 1, 1);