Skip to content

Commit 57758f5

Browse files
committed
Fix strpos() deprecation on sfCacheSessionStorage check for cookie
1 parent 1446798 commit 57758f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/storage/sfCacheSessionStorage.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function initialize($options = array())
8282

8383
$cookie = $this->request->getCookie($this->options['session_name']);
8484

85-
if (false !== strpos($cookie, ':')) {
85+
if (null !== $cookie && false !== strpos($cookie, ':')) {
8686
// split cookie data id:signature(id+secret)
8787
list($id, $signature) = explode(':', $cookie, 2);
8888

0 commit comments

Comments
 (0)