From: Phillip Wood Date: Fri, 30 Jun 2017 09:49:11 +0000 (+0100) Subject: Git::unquote_path(): throw an exception on bad path X-Git-Tag: v2.13.4~4^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d5f28b724192e9172d0a013dd7b2ca20fd1bbb9b?ds=inline Git::unquote_path(): throw an exception on bad path This is what the other routines in Git.pm do if there's an error. Signed-off-by: Phillip Wood Signed-off-by: Junio C Hamano --- diff --git a/perl/Git.pm b/perl/Git.pm index 3179e6efb2..f4b56e6d4d 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -1493,8 +1493,8 @@ sub prefix_lines { $_ = $2; last; } - # This is malformed -- just return it as-is for now. - return $_[0]; + # This is malformed + throw Error::Simple("invalid quoted path $_[0]"); } $_ = $remainder; }