Check cookie is a string
This commit is contained in:
parent
defa1f9fb9
commit
874d2e3e0a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue