Skip to content

A free open source IT asset/license management system

Strip quote marks from env_values

snipe2b5b3273e2f5
diff --git a/upgrade.php b/upgrade.php
index 3c0ec4cbdb..c1071bb4b5 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -59,6 +59,10 @@ foreach ($env as $line_num => $line) {
$env_value = trim($env_value);
+ // Strip out the quote marks if there are any
+ $env_value = str_replace('"', '',$env_value);
+ $env_value = str_replace("'", '',$env_value);
+
/**
* We set this $app_environment here to determine which version of composer to use, --no-dev or with dev dependencies.