diff options
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3-git/0001-python3-git-CVE-2022-24439-fix-from-PR-1521.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-git/0001-python3-git-CVE-2022-24439-fix-from-PR-1521.patch b/meta/recipes-devtools/python/python3-git/0001-python3-git-CVE-2022-24439-fix-from-PR-1521.patch index e3e66ec450..a017369f37 100644 --- a/meta/recipes-devtools/python/python3-git/0001-python3-git-CVE-2022-24439-fix-from-PR-1521.patch +++ b/meta/recipes-devtools/python/python3-git/0001-python3-git-CVE-2022-24439-fix-from-PR-1521.patch | |||
| @@ -291,7 +291,7 @@ index 59681bc..cea6b99 100644 | |||
| 291 | scmd = 'add' | 291 | scmd = 'add' |
| 292 | kwargs['insert_kwargs_after'] = scmd | 292 | kwargs['insert_kwargs_after'] = scmd |
| 293 | - repo.git.remote(scmd, name, Git.polish_url(url), **kwargs) | 293 | - repo.git.remote(scmd, name, Git.polish_url(url), **kwargs) |
| 294 | + url = Git.polish_url(url) | 294 | + url = Git.polish_url(url) |
| 295 | + if not allow_unsafe_protocols: | 295 | + if not allow_unsafe_protocols: |
| 296 | + Git.check_unsafe_protocols(url) | 296 | + Git.check_unsafe_protocols(url) |
| 297 | + repo.git.remote(scmd, "--", name, url, **kwargs) | 297 | + repo.git.remote(scmd, "--", name, url, **kwargs) |
