Check cookie is a string

This commit is contained in:
Mike Jolley 2016-03-16 10:04:51 +00:00
parent defa1f9fb9
commit 874d2e3e0a
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class WC_Session_Handler extends WC_Session {
* @return bool|array * @return bool|array
*/ */
public function get_session_cookie() { public function get_session_cookie() {
if ( empty( $_COOKIE[ $this->_cookie ] ) ) { if ( empty( $_COOKIE[ $this->_cookie ] ) || ! is_string( $_COOKIE[ $this->_cookie ] ) ) {
return false; return false;
} }