-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alllow all schemes in markdown by default #21146
Comments
There is an config option. markdown.CUSTOM_URL_SCHEMES |
Hum good to know thanks… but I guess it will not work if I do not own the server (which is my case)… Is there any security reason for this limitation? |
I believe security is the main concern (although it's not designed by me). Some schemes/protocols could lead to security problem. |
I'm not sure to understand how security would be impacted: I guess that it is always possible for an attacker to put an https link that points to, e.g. tinyurl and then put there a redirection to the url using the malicious protocol. In my opinion, it is the role of the browser to protect against malicious protocols (and to some extend it is the case, for instance firefox will ask you which program to call when you use a zoom link), not websites. |
Ok perfect then! |
- Closes #21146 - Closes #16721 ##⚠️ BREAKING⚠️ This changes the default behavior to now create links for any URL scheme when the user uses the markdown form for links (`[label](URL)`), this doesn't affect the rendering of inline links. To opt-out set the `markdown.CUSTOM_URL_SCHEMES` setting to a list of allowed schemes, all other schemes (except `http` and `https`) won't be allowed. # Before  # After  --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Giteabot <teabot@gitea.io>
Description
Using the main intance https://gitea.com I am unable to insert non-http emails. In particular I am interested to add links to my emails (I use the tool only internally) provided by the https://camiel.bouchier.be/en/cb_thunderlink extension. Unfortunately links like
cbthunderlink://somebase64string
are not clickable, even if I explicitely use the longer url notation:Gitea Version
1.18.0+dev-333-g9e0c43777
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Using the instance from https://gitea.com
Database
No response
The text was updated successfully, but these errors were encountered: