aboutsummaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-10-30 22:25:11 +0100
committerJunio C Hamano <junkio@cox.net>2006-11-01 12:26:29 -0800
commit8b4b94cc7998d6312025fe3350be57c89b803f9c (patch)
treed73d8205dade1d2e9c3cab50a80270d7deb90bf8 /git.c
parent45bd0c808d2a89254ee50807a99b7cf1147aa6d7 (diff)
downloadgit-8b4b94cc7998d6312025fe3350be57c89b803f9c.tar.gz
git-8b4b94cc7998d6312025fe3350be57c89b803f9c.tar.xz
gitweb: Use 's' regexp modifier to secure against filenames with LF
Use 's' (treat string as single line) regexp modifier in git_get_hash_by_path (against future changes, probably unnecessary) and in parse_ls_tree_line (when called with '-z'=>1 option) to secure against filenames containing newline. [jc: the hunk on git_get_hash_by_path was unneeded, and I noticed the regexp was doing unnecessary capture, so fixed it up while I was at it.] Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions