summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/install.js
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2023-03-03 22:28:38 +0000
committerGitHub <noreply@github.com>2023-03-03 17:28:38 -0500
commit5c4075e16dd7afc75557b178239b8172e286d5c3 (patch)
tree7d0864b447d57b6989044e0a94fb778f3c5837e3 /web_src/js/features/install.js
parent7f9d58fab8a3c4fd1a8f18d58e36fbfab7b30f33 (diff)
downloadgitea-5c4075e16dd7afc75557b178239b8172e286d5c3.tar.gz
gitea-5c4075e16dd7afc75557b178239b8172e286d5c3.zip
Fix GetFilesChangedBetween if the file name may be escaped (#23272)
The code for GetFilesChangedBetween uses `git diff --name-only base..head` to get the names of files changed between base and head however this forgets that git will escape certain values. This PR simply switches to use `-z` which has the `NUL` character as the separator. Ref https://github.com/go-gitea/gitea/pull/22568#discussion_r1123138096 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/js/features/install.js')
0 files changed, 0 insertions, 0 deletions