← All changes
|
includes/sdk/s3/Aws/ClientSideMonitoring/ConfigurationProvider.php
+1
-1
1.2.13
→
1.4.1
View file →
| @@ -145,9 +145,9 @@ | ||
| 145 | 145 | if (empty($data[$profile]['csm_host'])) { |
| 146 | 146 | $data[$profile]['csm_host'] = self::DEFAULT_HOST; |
| 147 | 147 | } |
| 148 | 148 | // port is optional |
| 149 | - if (empty($data[$profile]['csm_port'])) { | |
| 149 | + if (!\filter_var($data[$profile]['csm_port'] ?? null, \FILTER_VALIDATE_INT)) { | |
| 150 | 150 | $data[$profile]['csm_port'] = self::DEFAULT_PORT; |
| 151 | 151 | } |
| 152 | 152 | // client_id is optional |
| 153 | 153 | if (empty($data[$profile]['csm_client_id'])) { |