diff options
author | Jason A. Donenfeld | 2016-01-14 14:53:28 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2016-01-14 15:42:56 +0100 |
commit | c326f3eb026d67650f79a6dda9a1a42c55d10a25 (patch) | |
tree | 51b94c63164ea924eb019c2e3c1e0b290509549b /cgitrc.5.txt | |
parent | 9ca2566972db968df4479108b29bb92551138b57 (diff) | |
download | cgit-c326f3eb026d67650f79a6dda9a1a42c55d10a25.tar.gz cgit-c326f3eb026d67650f79a6dda9a1a42c55d10a25.tar.bz2 cgit-c326f3eb026d67650f79a6dda9a1a42c55d10a25.zip |
ui-plain: add enable-html-serving flag
Unrestricts plain/ to contents likely to be executed by browser.
Diffstat (limited to 'cgitrc.5.txt')
-rw-r--r-- | cgitrc.5.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 759f353..47850a8 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -190,6 +190,13 @@ enable-subject-links:: | |||
190 | in commit view. Default value: "0". See also: | 190 | in commit view. Default value: "0". See also: |
191 | "repo.enable-subject-links". | 191 | "repo.enable-subject-links". |
192 | 192 | ||
193 | enable-html-serving:: | ||
194 | Flag which, when set to "1", will allow the /plain handler to serve | ||
195 | mimetype headers that result in the file being treated as HTML by the | ||
196 | browser. When set to "0", such file types are returned instead as | ||
197 | text/plain or application/octet-stream. Default value: "0". See also: | ||
198 | "repo.enable-html-serving". | ||
199 | |||
193 | enable-tree-linenumbers:: | 200 | enable-tree-linenumbers:: |
194 | Flag which, when set to "1", will make cgit generate linenumber links | 201 | Flag which, when set to "1", will make cgit generate linenumber links |
195 | for plaintext blobs printed in the tree view. Default value: "1". | 202 | for plaintext blobs printed in the tree view. Default value: "1". |
@@ -513,6 +520,10 @@ repo.enable-subject-links:: | |||
513 | A flag which can be used to override the global setting | 520 | A flag which can be used to override the global setting |
514 | `enable-subject-links'. Default value: none. | 521 | `enable-subject-links'. Default value: none. |
515 | 522 | ||
523 | enable-html-serving:: | ||
524 | A flag which can be used to override the global setting | ||
525 | `enable-html-serving`. Default value: none. | ||
526 | |||
516 | repo.hide:: | 527 | repo.hide:: |
517 | Flag which, when set to "1", hides the repository from the repository | 528 | Flag which, when set to "1", hides the repository from the repository |
518 | index. The repository can still be accessed by providing a direct path. | 529 | index. The repository can still be accessed by providing a direct path. |