You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* giteaofficial/main:
Allow render HTML with css/js external links (go-gitea#19017)
Use correct count for `NumOpenIssues` (go-gitea#19980)
In code search, get code unit accessible repos in one (main) query (go-gitea#19764)
[skip ci] Updated translations via Crowdin
Always try to fetch repo for mirrors (go-gitea#19975)
Remove tab/TabName usage where it's not needed (go-gitea#19973)
Fix cli command restore-repo: "units" should be parsed as StringSlice (go-gitea#19953)
Uppercase first languages letters (go-gitea#19965)
Move tests as seperate sub packages to reduce duplicated file names (go-gitea#19951)
Replace unstyled meter with progress (go-gitea#19968)
[skip ci] Updated translations via Crowdin
[skip ci] Updated translations via Crowdin
Remove singuliere from MAINTAINERS (go-gitea#19883)
Fix aria for logo (go-gitea#19955)
Fix mirror template bug (go-gitea#19959)
;NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,Українська,日本語,español,português do Brasil,Português de Portugal,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어,ελληνικά,فارسی,magyar nyelv,bahasa Indonesia,മലയാളം
2128
+
;NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,Français,Nederlands,Latviešu,Русский,Українська,日本語,Español,Português do Brasil,Português de Portugal,Polski,Български,Italiano,Suomi,Türkçe,Čeština,Српски,Svenska,한국어,Ελληνικά,فارسی,Magyar nyelv,Bahasa Indonesia,മലയാളം
;; Don't pass the file on STDIN, pass the filename as argument instead.
2183
2183
;IS_INPUT_FILE = false
2184
-
; Don't filter html tags and attributes if true
2185
-
;DISABLE_SANITIZER = false
2184
+
;; How the content will be rendered.
2185
+
;; * sanitized: Sanitize the content and render it inside current page, default to only allow a few HTML tags and attributes. Customized sanitizer rules can be defined in [markup.sanitizer.*] .
2186
+
;; * no-sanitizer: Disable the sanitizer and render the content inside current page. It's **insecure** and may lead to XSS attack if the content contains malicious code.
2187
+
;; * iframe: Render the content in a separate standalone page and embed it into current page by iframe. The iframe is in sandbox mode with same-origin disabled, and the JS code are safely isolated from parent page.
@@ -763,7 +763,7 @@ Default templates for project boards:
763
763
-`STACKTRACE_LEVEL`: **None**: Default log level at which to log create stack traces. \[Trace, Debug, Info, Warn, Error, Critical, Fatal, None\]
764
764
-`ENABLE_SSH_LOG`: **false**: save ssh log to log file
765
765
-`ENABLE_XORM_LOG`: **true**: Set whether to perform XORM logging. Please note SQL statement logging can be disabled by setting `LOG_SQL` to false in the `[database]` section.
766
-
766
+
767
767
### Router Log (`log`)
768
768
-`DISABLE_ROUTER_LOG`: **false**: Mute printing of the router log.
769
769
-`ROUTER`: **console**: The mode or name of the log the router should log to. (If you set this to `,` it will log to default Gitea logger.)
@@ -998,9 +998,9 @@ Default templates for project boards:
List of locales shown in language selector. The first locale will be used as the default if user browser's language doesn't match any locale in the list.
1003
-
-`NAMES`: **English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,Português de Portugal,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어,ελληνικά,فارسی,magyar nyelv,bahasa Indonesia,മലയാളം**: Visible names corresponding to the locales
1003
+
-`NAMES`: **English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,Français,Nederlands,Latviešu,Русский,Українська,日本語,Español,Português do Brasil,Português de Portugal,Polski,Български,Italiano,Suomi,Türkçe,Čeština,Српски,Svenska,한국어,Ελληνικά,فارسی,Magyar nyelv,Bahasa Indonesia,മലയാളം**: Visible names corresponding to the locales
1004
1004
1005
1005
## U2F (`U2F`) **DEPRECATED**
1006
1006
-`APP_ID`: **`ROOT_URL`**: Declares the facet of the application which is used for authentication of previously registered U2F keys. Requires HTTPS.
@@ -1026,13 +1026,16 @@ IS_INPUT_FILE = false
1026
1026
command. Multiple extensions needs a comma as splitter.
1027
1027
- RENDER\_COMMAND: External command to render all matching extensions.
1028
1028
- IS\_INPUT\_FILE: **false** Input is not a standard input but a file param followed `RENDER_COMMAND`.
1029
-
- DISABLE_SANITIZER: **false** Don't filter html tags and attributes if true. Don't change this to true except you know what that means.
1029
+
- RENDER_CONTENT_MODE: **sanitized** How the content will be rendered.
1030
+
- sanitized: Sanitize the content and render it inside current page, default to only allow a few HTML tags and attributes. Customized sanitizer rules can be defined in `[markup.sanitizer.*]`.
1031
+
- no-sanitizer: Disable the sanitizer and render the content inside current page. It's **insecure** and may lead to XSS attack if the content contains malicious code.
1032
+
- iframe: Render the content in a separate standalone page and embed it into current page by iframe. The iframe is in sandbox mode with same-origin disabled, and the JS code are safely isolated from parent page.
1030
1033
1031
1034
Two special environment variables are passed to the render command:
1032
1035
-`GITEA_PREFIX_SRC`, which contains the current URL prefix in the `src` path tree. To be used as prefix for links.
1033
1036
-`GITEA_PREFIX_RAW`, which contains the current URL prefix in the `raw` path tree. To be used as prefix for image paths.
1034
1037
1035
-
If `DISABLE_SANITIZER` is false, Gitea supports customizing the sanitization policy for rendered HTML. The example below will support KaTeX output from pandoc.
1038
+
If `RENDER_CONTENT_MODE` is `sanitized`, Gitea supports customizing the sanitization policy for rendered HTML. The example below will support KaTeX output from pandoc.
0 commit comments