mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 01:54:28 +02:00
ui-plain: add enable-html-serving flag
Unrestricts plain/ to contents likely to be executed by browser.
This commit is contained in:
parent
9ca2566972
commit
c326f3eb02
5 changed files with 29 additions and 0 deletions
11
cgitrc.5.txt
11
cgitrc.5.txt
|
@ -190,6 +190,13 @@ enable-subject-links::
|
|||
in commit view. Default value: "0". See also:
|
||||
"repo.enable-subject-links".
|
||||
|
||||
enable-html-serving::
|
||||
Flag which, when set to "1", will allow the /plain handler to serve
|
||||
mimetype headers that result in the file being treated as HTML by the
|
||||
browser. When set to "0", such file types are returned instead as
|
||||
text/plain or application/octet-stream. Default value: "0". See also:
|
||||
"repo.enable-html-serving".
|
||||
|
||||
enable-tree-linenumbers::
|
||||
Flag which, when set to "1", will make cgit generate linenumber links
|
||||
for plaintext blobs printed in the tree view. Default value: "1".
|
||||
|
@ -513,6 +520,10 @@ repo.enable-subject-links::
|
|||
A flag which can be used to override the global setting
|
||||
`enable-subject-links'. Default value: none.
|
||||
|
||||
enable-html-serving::
|
||||
A flag which can be used to override the global setting
|
||||
`enable-html-serving`. Default value: none.
|
||||
|
||||
repo.hide::
|
||||
Flag which, when set to "1", hides the repository from the repository
|
||||
index. The repository can still be accessed by providing a direct path.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue