Skip to content

Commit 51b0089

Browse files
committed
Fixed session id warning
1 parent 27b0a32 commit 51b0089

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/class/api/Manage.class.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ function handle() {
3737
unset($args);
3838

3939
$generateSession = function($pwd = null) {
40-
$sessionid = uniqid('manage_', true);
40+
$sessionid = uniqid('manage-', true);
41+
$sessionid = preg_replace('/[^a-zA-Z0-9\-]+/', '-', $sessionid);
4142
session_id($sessionid);
4243
session_start();
4344
if ($pwd !== null) {

0 commit comments

Comments
 (0)