Skip to content

Commit 94d9da3

Browse files
author
patched.codes[bot]
committed
Patched /Users/user/Documents/GitHub/example-python/main.py
1 parent 9b1c29f commit 94d9da3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
url = 'http://example.com' # Replace with a valid URL
1515
req = requests.Request('GET', url)
1616
prep = req.prepare()
17-
session.rebuild_proxies(prep, proxies)
17+
if not url.startswith('https'):
18+
session.rebuild_proxies(prep, proxies)
1819

1920
# Introduce a command injection vulnerability
2021
user_input = input("Enter a command to execute: ")

0 commit comments

Comments
 (0)