Skip to content

Commit

Permalink
インストールの際にInternal Server Error が発生する fix baserproject#2128
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Mar 19, 2023
1 parent a67913a commit 09bff8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@
</p>
</div>
<div class="submit bca-actions">
<?php echo $this->BcAdminForm->create(null, ['url' => ['action' => 'step2'], 'type' => 'post']) ?>
<?php echo $this->BcAdminForm->button('<span>' . __d('baser_core', 'インストール開始') . '</span>', [
<?php $this->BcBaser->link('<span>' . __d('baser_core', 'インストール開始') . '</span>',
['action' => 'step2'], [
'class' => 'bca-btn bca-actions__item bca-loading',
'data-bca-btn-size' => 'lg',
'data-bca-btn-width' => 'lg',
'data-bca-btn-type' => 'save',
'escapeTitle' => false
]) ?>
<?php echo $this->BcAdminForm->end() ?>
</div>

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use BcInstaller\Service\Admin\InstallationsAdminServiceInterface;
use Cake\Core\Configure;
use Cake\Event\EventInterface;
use Cake\Http\Cookie\Cookie;
use Cake\ORM\Exception\PersistenceFailedException;
use Cake\Utility\Hash;
use BaserCore\Annotation\UnitTest;
Expand Down Expand Up @@ -61,6 +62,8 @@ public function beforeFilter(EventInterface $event)
public function index()
{
BcUtil::clearAllCache();
// クッキーを削除。インストール中のCSRF エラーの発生防止
$this->setResponse($this->getResponse()->withExpiredCookie(new Cookie('csrfToken')));
}

/**
Expand Down

0 comments on commit 09bff8b

Please sign in to comment.