diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-01-22 18:32:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 13:32:35 -0500 |
commit | 27ee01e1e866f2f13603af65224ddae77d5149d7 (patch) | |
tree | 18b2dc30197af73a35ca903042f672620dbfa38b /services/gitdiff | |
parent | 6ad7a5376adf3f04b6eed6de9feef09752298cd0 (diff) | |
download | gitea-27ee01e1e866f2f13603af65224ddae77d5149d7.tar.gz gitea-27ee01e1e866f2f13603af65224ddae77d5149d7.zip |
Disable content sniffing on `PlainTextBytes` (#18359)
- Disable the browser's function to "sniff" for the content-type on the
provided plain text, this will prevent the possible usage of
user-controlled data being sent, which could be malicious.
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'services/gitdiff')
0 files changed, 0 insertions, 0 deletions