Skip to content

Commit e2efcfb

Browse files
committed
Add additional example where requests with redirection enabled may be unsafe
1 parent 2de669e commit e2efcfb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SECURITY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ $curl->setOpt(CURLOPT_FOLLOWLOCATION, true); // DANGER!
6666
$curl->download('https://www.example.com/image.png', 'my_image.png');
6767
```
6868

69+
```php
70+
$curl = new Curl();
71+
$curl->setOpt(CURLOPT_FOLLOWLOCATION, true); // DANGER!
72+
$curl->get('https://www.example.com/image.png');
73+
```
74+
6975
### Keep SSL protections enabled.
7076

7177
* Do not disable SSL protections.

0 commit comments

Comments
 (0)