Commit c981c3d
committed
Fix tarfile FilterError handling to skip member extraction
In `tarfile` library, FilterError with error_level set to 0 correctly logged a debugging
message but did not properly skip extraction of a member. Updates filter
functions to return None when a FilterError is seen, as stated in docs.1 parent 9cdf05b commit c981c3d
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2309 | 2309 | | |
2310 | 2310 | | |
2311 | 2311 | | |
2312 | | - | |
| 2312 | + | |
2313 | 2313 | | |
2314 | | - | |
| 2314 | + | |
2315 | 2315 | | |
2316 | 2316 | | |
2317 | 2317 | | |
2318 | 2318 | | |
2319 | | - | |
2320 | | - | |
| 2319 | + | |
| 2320 | + | |
2321 | 2321 | | |
2322 | 2322 | | |
2323 | | - | |
2324 | | - | |
2325 | | - | |
2326 | | - | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
2327 | 2327 | | |
2328 | 2328 | | |
2329 | 2329 | | |
| |||
0 commit comments