You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 55230ec
Browse filesBrowse the repository at this point in the historyBrowse files
if (php_session_valid_key(ZSTR_VAL(key)) ==FAILURE) {
168
+
if (php_session_valid_key_ex(key) ==FAILURE) {
169
169
php_error_docref(NULL, E_WARNING, "Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, \"-\", and \",\" characters are allowed");
Session IDs with NUL bytes are rejected as a whole, not truncated
3
+
--INI--
4
+
session.save_handler=files
5
+
session.save_path=
6
+
session.use_cookies=0
7
+
session.use_strict_mode=0
8
+
--EXTENSIONS--
9
+
session
10
+
--SKIPIF--
11
+
<?phpinclude'skipif.inc'; ?>
12
+
--FILE--
13
+
<?php
14
+
session_id("nulbug\0stillvalid");
15
+
$started = session_start();
16
+
var_dump($started);
17
+
var_dump(session_id());
18
+
if ($started) {
19
+
session_destroy();
20
+
}
21
+
?>
22
+
--EXPECTF--
23
+
Warning: session_start(): Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in %s on line %d
24
+
25
+
Warning: session_start(): Failed to read session data: files (path: ) in %s on line %d
0 commit comments