mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-27 18:50:43 +00:00
Add XML external entity injection section to security doc
This commit is contained in:
@@ -84,3 +84,11 @@ $curl->get('https://www.example.com/image.png');
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // DANGER!
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // DANGER!
|
||||
```
|
||||
|
||||
### Prevent XML External Entity injection
|
||||
|
||||
* Set the following when using the default PHP XML parser to prevent XML external entity injection.
|
||||
|
||||
```php
|
||||
libxml_disable_entity_loader(true);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user