Skip to content

Commit 04ab14f

Browse files
authored
Ca path (#49)
* avoid escapeshellarg fatal errors * L7 upgrade * version number * update ca path
1 parent 35a1cac commit 04ab14f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Understand/UnderstandLaravel5/UnderstandLaravel5ServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ protected function resolveHandler($app)
281281
$handlerType = $app['config']->get('understand-laravel.handler');
282282
$sslBundlePath = $app['config']->get('understand-laravel.ssl_ca_bundle');
283283

284+
if (is_null($sslBundlePath))
285+
{
286+
$sslBundlePath = __DIR__ . '/../../ca_bundle.crt';
287+
}
288+
284289
if ($handlerType == 'async')
285290
{
286291
return new Handlers\AsyncHandler($inputToken, $apiUrl, $sslBundlePath);

src/config/understand-laravel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
/**
4949
* SSL CA Bundle location
5050
*/
51-
'ssl_ca_bundle' => base_path('vendor/understand/understand-laravel5/src/ca_bundle.crt'),
51+
'ssl_ca_bundle' => null,
5252

5353
/**
5454
* The log types that should not be sent to Understand.io.

0 commit comments

Comments
 (0)