Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3cadd6f

Browse files
committed
Fixed a case were values containing \\" were not properly escaped
1 parent2b7975c commit3cadd6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎git/config.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,14 @@ def _read(self, fp, fpname):
254254
ifnotescapedandc=='"':
255255
in_quote=notin_quote
256256
else:
257-
escaped= (c=='\\')
257+
escaped= (c=='\\')andnotescaped
258258
unquoted_optval+=c
259259

260+
ifin_quote:
261+
ifnote:
262+
e=cp.ParsingError(fpname)
263+
e.append(lineno,repr(line))
264+
260265
optval=unquoted_optval
261266

262267
optval=optval.replace('\\\\','\\')# Unescape backslashes

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp