0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-01 07:41:24 +01:00
gitea/services
zeripath 7a8a05cc44
Fix diff path unquoting (#12554)
* Fix diff path unquoting

services/gitdiff/gitdiff.go whereby there it assumed that the path would
always be quoted on both sides

This PR simplifies the code here and uses fmt.Fscanf to parse the
strings as necessary.

Fix #12546

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add testcase as per @mrsdizzie

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-22 16:07:37 +01:00
..
comments Refactor pull request review (#8954) 2019-11-14 10:57:36 +08:00
externalaccount Allow externalID to be UUID (#8551) 2019-10-17 10:06:28 +08:00
gitdiff Fix diff path unquoting (#12554) 2020-08-22 16:07:37 +01:00
issue Fix ref links in issue overviews for tags (#8742) 2020-05-14 18:55:43 -04:00
mailer Add push commits history comment on PR time-line (#11167) 2020-05-20 09:47:24 -03:00
mirror Support Force-update in Mirror and improve Tracing in mirror (#12242) 2020-08-20 16:41:07 -04:00
pull Prevent NPE on commenting on lines with invalidated comments (with migration) (#12549) 2020-08-21 10:53:14 +03:00
release Add a storage layer for attachments (#11387) 2020-08-18 12:23:45 +08:00
repository API endpoint for repo transfer (#9947) 2020-01-31 15:49:04 +00:00
wiki Handle push rejection in branch and upload (#10854) 2020-03-28 01:13:18 -03:00