gitea/modules
Lunny Xiao b01dce2a6e
Allow render HTML with css/js external links (#19017)
* Allow render HTML with css/js external links

* Fix bug because of filename escape chars

* Fix lint

* Update docs about new configuration item

* Fix bug of render HTML in sub directory

* Add CSP head for displaying iframe in rendering file

* Fix test

* Apply suggestions from code review

Co-authored-by: delvh <dev.lh@web.de>

* Some improvements

* some improvement

* revert change in SanitizerDisabled of external renderer

* Add sandbox for iframe and support allow-scripts and allow-same-origin

* refactor

* fix

* fix lint

* fine tune

* use single option RENDER_CONTENT_MODE, use sandbox=allow-scripts

* fine tune CSP

* Apply suggestions from code review

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-06-16 11:33:23 +08:00
..
activitypub
analyze
appstate
auth
avatar
base Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
cache
charset
container
context Remove tab/TabName usage where it's not needed (#19973) 2022-06-15 23:05:32 +08:00
convert Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
csv Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
doctor Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
emoji
eventsource Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
generate
git Fix some mirror bugs (#18649) 2022-06-11 21:50:14 +08:00
gitgraph Move some code into models/git (#19879) 2022-06-12 23:51:54 +08:00
graceful Fix signal loop in graceful manager (#19943) 2022-06-12 21:50:18 +08:00
hcaptcha
highlight Fix copy/paste of empty lines (#19798) 2022-06-10 21:45:28 +08:00
hostmatcher
httpcache
httplib
indexer Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
json
lfs Move some code into models/git (#19879) 2022-06-12 23:51:54 +08:00
log
markup Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
metrics
migration Prevent NPE whilst migrating if there is a team request review (#19855) 2022-06-09 10:50:05 +08:00
nosql
notification Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
options
packages
paginator
password
pprof
private
process Set Setpgid on child git processes (#19865) 2022-06-03 15:36:18 +01:00
proxy
public
queue
recaptcha
references Custom regexp external issues (#17624) 2022-06-10 13:39:53 +08:00
regexplru Custom regexp external issues (#17624) 2022-06-10 13:39:53 +08:00
repository Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
secret
session
setting Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
ssh Implement http signatures support for the API (#17565) 2022-06-05 08:16:14 +01:00
storage
structs
svg
sync
templates Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
test
timeutil
translation
typesniffer Fix raw endpoint PDF file headers (#19825) 2022-05-28 18:10:14 +03:00
updatechecker
upload
uri
user
util Prettify number of issues (#17760) 2022-06-12 20:08:23 +08:00
validation
web Unify repo settings & show better error (#19828) 2022-06-12 13:43:27 +08:00