-rw-r--r-- | ui-summary.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui-summary.c b/ui-summary.c index f2a9b46..a2c018e 100644 --- a/ui-summary.c +++ b/ui-summary.c | |||
@@ -78,11 +78,15 @@ void cgit_print_repo_readme(char *path) | |||
78 | if (!slash) | 78 | if (!slash) |
79 | return; | 79 | return; |
80 | tmp = xmalloc(slash - ctx.repo->readme + 1 + strlen(path) + 1); | 80 | tmp = xmalloc(slash - ctx.repo->readme + 1 + strlen(path) + 1); |
81 | strncpy(tmp, ctx.repo->readme, slash - ctx.repo->readme + 1); | 81 | strncpy(tmp, ctx.repo->readme, slash - ctx.repo->readme + 1); |
82 | strcpy(tmp + (slash - ctx.repo->readme + 1), path); | 82 | strcpy(tmp + (slash - ctx.repo->readme + 1), path); |
83 | } else | 83 | } else |
84 | tmp = ctx.repo->readme; | 84 | tmp = ctx.repo->readme; |
85 | html("<div id='summary'>"); | 85 | html("<div id='summary'>"); |
86 | if (ctx.repo->about_filter) | ||
87 | cgit_open_filter(ctx.repo->about_filter); | ||
86 | html_include(tmp); | 88 | html_include(tmp); |
89 | if (ctx.repo->about_filter) | ||
90 | cgit_close_filter(ctx.repo->about_filter); | ||
87 | html("</div>"); | 91 | html("</div>"); |
88 | } | 92 | } |