Skip to content

Commit

Permalink
Merge pull request #331 from nanasess/remove-mysql-check
Browse files Browse the repository at this point in the history
GitHub Actions の Setup MySQL が失敗するのを修正
  • Loading branch information
nanasess committed Oct 25, 2019
2 parents 6965fbc + 76fce74 commit 6825b6b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ jobs:
choco install -y mysql --version 5.7.18
mysql --user=root -e "CREATE DATABASE `myapp_test`;"
mysql --user=root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';FLUSH PRIVILEGES;"
mysql --user=root --password=password -h 127.0.0.1 -e "SELECT version();"
- name: Setup to EC-CUBE
env:
Expand Down
7 changes: 5 additions & 2 deletions data/class/SC_Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ public function __construct($day = COOKIE_EXPIRE)

/**
* @param string $key
* @param string $val
* @param bool $secure
* @param bool $httponly
*/
public function setCookie($key, $val)
public function setCookie($key, $val, $secure = false, $httponly = true)
{
setcookie($key, $val, $this->expire, ROOT_URLPATH, DOMAIN_NAME);
setcookie($key, $val, $this->expire, ROOT_URLPATH, DOMAIN_NAME, $secure, $httponly);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion data/class/SC_Initial.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SC_Initial
public function __construct()
{
/** EC-CUBEのバージョン */
define('ECCUBE_VERSION', '2.17.0-RC');
define('ECCUBE_VERSION', '2.17.0');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion data/class/sessionfactory/SC_SessionFactory_UseCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function initSession()
ini_set('session.cache_limiter', 'none');
// (session.auto_start などで)セッションが開始されていた場合に備えて閉じる。(FIXME: 保存する必要はない。破棄で良い。)
session_write_close();
session_set_cookie_params(0, ROOT_URLPATH, DOMAIN_NAME);
session_set_cookie_params(0, ROOT_URLPATH, DOMAIN_NAME, false, true);
// セッション開始
// FIXME EC-CUBE をネストしてインストールした場合を考慮して、一意とすべき
session_name('ECSESSID');
Expand Down

0 comments on commit 6825b6b

Please sign in to comment.