-
-
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
Introduce path Clean/Join helper functions #23495
Conversation
cad63c1
to
6f48947
Compare
6f48947
to
32dfaa7
Compare
CI Fail is related with:
|
Fixed by cb9c518 , I think it's better to use absolute paths internally as much as possible, it avoids unclear behaviors. |
2e42cc8
to
cb9c518
Compare
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #23495 +/- ##
==========================================
- Coverage 47.14% 47.12% -0.02%
==========================================
Files 1149 1154 +5
Lines 151446 152353 +907
==========================================
+ Hits 71397 71795 +398
- Misses 71611 72079 +468
- Partials 8438 8479 +41
... and 37 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
ab1ca15
to
8525289
Compare
a7fa5e9
to
86974ff
Compare
Made some new commits, major changes:
|
2881a0d
to
523672d
Compare
523672d
to
1fb8a53
Compare
This comment was marked as resolved.
This comment was marked as resolved.
To address the concern about "misunderstand or misuse the SafePathXxx", in e94155b :
|
e236783
to
e94155b
Compare
🎺 🤖 |
* upstream/main: Use a general approch to improve a11y for all checkboxes and dropdowns. (go-gitea#23542) [skip ci] Updated translations via Crowdin Update PR documentation (go-gitea#23620) Set opaque background on markup and images (go-gitea#23578) Decouple the issue-template code from comment_tab.tmpl (go-gitea#23556) Remove `id="comment-form"` dead code, fix tag (go-gitea#23555) Introduce path Clean/Join helper functions (go-gitea#23495) Remove conflicting CSS rules on notifications, improve notifications table (go-gitea#23565) Remove @metalmatze as maintainer (go-gitea#23612) Keep (add if not existing) xmlns attribute for generated SVG images (go-gitea#23410)
Backport: Introduce path Clean/Join helper functions, partially backport&refactor #23607 |
Since #23493 has conflicts with latest commits, this PR is my proposal for fixing #23371
Details are in the comments
And refactor the
modules/options
module, to make it always use "filepath" to access local files.Benefits:
util.CleanPath(strings.ReplaceAll(p, "\\", "/"))), "/")
any more (not only one before)