Skip to content

Commit fdd2453

Browse files
committed
Improved error msg for configparser key validation and added note in 3.14 whatsnew
1 parent 8979d3a commit fdd2453

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/whatsnew/3.14.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,14 @@ concurrent.futures
12591259
buffer.
12601260
(Contributed by Enzo Bonnal and Josh Rosenberg in :gh:`74028`.)
12611261

1262+
configparser
1263+
------------
1264+
1265+
* Security fix: will no longer write config files it cannot read. Attempting
1266+
to :meth:`configparser.ConfigParser.write` keys containing delimiters or
1267+
beginning with the section header pattern will raise a
1268+
:class:`configparser.InvalidWriteError`.
1269+
(Contributed by Jacob Lincoln in :gh:`129270`)
12621270

12631271
contextvars
12641272
-----------

0 commit comments

Comments
 (0)