0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-27 01:14:35 +01:00
gitea/services/gitdiff
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
..
testdata/academic-module Fix panic when diff (#9187) 2019-11-28 17:05:57 +08:00
gitdiff.go Fix diff path unquoting (#12554) 2020-08-22 16:07:37 +01:00
gitdiff_test.go Fix diff path unquoting (#12554) 2020-08-22 16:07:37 +01:00
main_test.go Move git diff codes from models to services/gitdiff (#7889) 2019-09-05 22:20:09 -04:00