Installation: bug fixes

This commit is contained in:
Taras Machyshyn
2021-03-25 13:00:59 +02:00
parent 42098f477a
commit 89e849d851
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class SystemHelper extends \Espo\Core\Utils\System
protected $apiPath;
protected $modRewriteUrl = '/Metadata';
protected $modRewriteUrl = '/';
protected $writableDir = 'data';
+12
View File
@@ -27,6 +27,18 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
$clearedCookieList = [
'auth-token-secret',
'auth-username',
'auth-token',
];
foreach ($clearedCookieList as $cookieName) {
if (!isset($_COOKIE[$cookieName])) continue;
setcookie($cookieName, null, -1, '/');
}
$config = $installer->getConfig();
$fields = array(