@@ -42,9 +42,10 @@ Some facts and figures:
42
42
or to acknowledge that they are expected and the archive is fully trusted.
43
43
44
44
.. versionchanged :: 3.14
45
- The default extraction filter was :func: `fully_trusted <fully_trusted_filter> ` but is now :func: `data <data_filter> ` which
46
- which disallows dangerous features like links to absolute paths or paths
47
- outside the destination.
45
+ Set the default extraction filter to :func: `data <data_filter> `,
46
+ which disallows dangerous features such as links to absolute paths
47
+ or paths outside of the destination. Previously, the filter strategy
48
+ was :func: `fully_trusted <fully_trusted_filter> `.
48
49
49
50
.. function :: open(name=None, mode='r', fileobj=None, bufsize=10240, **kwargs)
50
51
@@ -503,7 +504,7 @@ be finalized; only the internally used file object will be closed. See the
503
504
.. warning ::
504
505
505
506
The default filter is set to ``filter='data' `` to prevent the most
506
- dangerous security issues, read the :ref: `tarfile-extraction-filter `
507
+ dangerous security issues. Read the :ref: `tarfile-extraction-filter `
507
508
section for details.
508
509
509
510
Never extract archives from untrusted sources without prior inspection,
@@ -545,7 +546,7 @@ be finalized; only the internally used file object will be closed. See the
545
546
See the warning for :meth: `extractall `.
546
547
547
548
The default filter is set to ``filter='data' `` to prevent the most
548
- dangerous security issues, read the :ref: `tarfile-extraction-filter `
549
+ dangerous security issues. Read the :ref: `tarfile-extraction-filter `
549
550
section for details.
550
551
551
552
.. versionchanged :: 3.2
0 commit comments