Skip to content

Commit

Permalink
Fix URL sandbox docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Dec 13, 2023
1 parent 9dfe6f0 commit 9ff64a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core_codemods/docs/pixee_python_url-sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Our changes introduce sandboxing around URL creation that force developers to sp
def request_url():
url = request.args["loc"]
- resp = requests.get(url)
+ resp = safe_requests.get.get(url)
+ resp = safe_requests.get(url)
...
```

Expand Down Expand Up @@ -59,5 +59,5 @@ If you want to allow those protocols, change the incoming PR to look more like t

```diff
-resp = requests.get(url)
+resp = safe_requests.get.get(url, allowed_protocols=("ftp",))
+resp = safe_requests.get(url, allowed_protocols=("ftp",))
```

0 comments on commit 9ff64a1

Please sign in to comment.