-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Wrong unicode char reporting. #23682
Comments
It is a Chinese unicode |
I agree, this detection is still far too agressive. It should only warn on actual suspicious stuff, like RTL characters and such, not "uncommon" punctations. |
Also agree that "the detection is too aggressive" At least, I think we can make the detection skip the Markdown/HTML/XML/etc types. That detection only makes sense for source code files. |
I would prefer a solution that adds a config option
The default should be |
No, don't skip any files. BIDI exploits can also be in the filename. From the linked page:
|
I think it worries too much. https://github.com/wxiaoguang/playground/wiki/test-202e
|
GitHub only does it for code. I guess that is where it matters the most. So we could do two options with these defaults: [ui]
CHARACTER_HIGHLIGHT=bidi
CHARACTER_HIGHLIGHT_INCLUDE_MARKUP=false |
Yeah, that's what I meant, source code, e.g. stuff that renders in a monospace font 😉. |
…a#28454) * Close go-gitea#24483 * Close go-gitea#28123 * Close go-gitea#23682 * Close go-gitea#23149 (maybe more)
No, it’s not; This got my attention because of this nonsensual and stupid PR in one of my repositories replacing correct characters with their |
@jirutka there is a a recently merged config option to disable this highlighting. As for removing it (or disabling by default), due to it being a claimed security issue it is required to have, otherwise we risk having a CVE opened that'll apply to all versions (and ones in the future). If that happens then that prevents many people from running the software (there are many places that can't run software with known CVEs regardless of context, sometimes this is legislated by law too). |
…a#28454) * Close go-gitea#24483 * Close go-gitea#28123 * Close go-gitea#23682 * Close go-gitea#23149 (maybe more)
…a#28454) * Close go-gitea#24483 * Close go-gitea#28123 * Close go-gitea#23682 * Close go-gitea#23149 (maybe more)
The text was updated successfully, but these errors were encountered: