-
-
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
Fix #4090 by escaping filename page/img link (without path) for short link #4091
Conversation
Comment to link issue to PR #4090 |
CI fail. I restarted Drone, but same fail happened. Looks like it is related to this change. |
Seems to me it breaks links like |
@lafriks You are totally right! |
Codecov Report
@@ Coverage Diff @@
## master #4091 +/- ##
==========================================
- Coverage 19.96% 19.96% -0.01%
==========================================
Files 153 153
Lines 30521 30524 +3
==========================================
Hits 6094 6094
- Misses 23513 23515 +2
- Partials 914 915 +1
Continue to review full report at Codecov.
|
Or probably you can escape only last part by splitting |
@lafriks I think of it but I didn't go that way as I find it kind of strange to encode only part of the url and a other solution could be to encode all except /. So I choose a simple implementation only supporting filename without path but I can change if needed. |
I would prefer to have behaviour same as GitHub so that imported/mirrored GitHub wiki/md would work same also on Gitea but that probably can be done in other PR |
@sapk please send a back port to v1.4 |
…img link (without path) for short link
And add more tests