Browse Source

adding #45

master
Björn 4 years ago
parent
commit
8b99447b31
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/Helpers/NginxVhostHelper.php

+ 4
- 1
app/Helpers/NginxVhostHelper.php View File

@ -83,7 +83,10 @@ class NginxVhostHelper
if (count($matches) >= 2) { if (count($matches) >= 2) {
$result['ssl'] = true; $result['ssl'] = true;
var_dump($matches); die();
// @TODO find a regex that ignore the ";"
foreach($matches as $index => $match) {
$matches[$index] = str_replace(';', '', $match);
}
if (file_exists($matches[0]) && file_exists($matches[1])) { if (file_exists($matches[0]) && file_exists($matches[1])) {
$result['ssl_certificate_exists'] = true; $result['ssl_certificate_exists'] = true;


Loading…
Cancel
Save