You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
4 years ago
..
testdata/academic-module Fix panic when diff (#9187) 5 years ago
gitdiff.go Fix diff path unquoting (#12554) 4 years ago
gitdiff_test.go Fix diff path unquoting (#12554) 4 years ago
main_test.go Move git diff codes from models to services/gitdiff (#7889) 5 years ago