aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/diff-highlight/diff-highlight.perl
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2025-03-17 20:36:04 +0100
committerTaylor Blau <me@ttaylorr.com>2025-05-23 17:03:30 -0400
commitb966b738e1923badc788b9111cc81653b50ff164 (patch)
treeb8ee1c60fab44e178e250c552927410f0cf88755 /contrib/diff-highlight/diff-highlight.perl
parentgitk: include y coord in recorded sash position (diff)
downloadgit-b966b738e1923badc788b9111cc81653b50ff164.tar.gz
git-b966b738e1923badc788b9111cc81653b50ff164.zip
gitk: treat file names beginning with "|" as relative paths
The Tcl 'open' function has a vary wide interface. It can open files as well as pipes to external processes. The difference is made only by the first character of the file name: if it is "|", an process is spawned. We have a number of calls of Tcl 'open' that take a file name from the environment in which Gitk is running. Be prepared that insane values are injected. In particular, when we intend to open a file, do not mistake a file name that happens to begin with "|" as a request to run a process. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'contrib/diff-highlight/diff-highlight.perl')
0 files changed, 0 insertions, 0 deletions