Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
66a39880
Verified
Commit
66a39880
authored
3 months ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
(CORE) - progression of un-seralization 2
parent
96bbe47b
core-php8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/class_session.inc
+4
-2
include/class_session.inc
with
4 additions
and
2 deletions
+4
-2
include/class_session.inc
+
4
−
2
View file @
66a39880
...
...
@@ -57,7 +57,7 @@ class session
public
static
function
set
(
$name
,
$value
)
{
if
(
$name
===
'config'
)
{
$value
=
json_encode
(
$value
);
$value
=
pack
(
'C'
,
$value
);
}
$_SESSION
[
$name
]
=
$value
;
}
...
...
@@ -78,7 +78,9 @@ class session
public
static
function
get
(
$name
)
{
if
(
$name
===
'config'
)
{
return
json_decode
(
$_SESSION
[
$name
]);
if
(
isset
(
$_SESSION
[
'config'
]))
{
return
unpack
(
'C'
,
$_SESSION
[
$name
]);
}
}
else
if
(
isset
(
$_SESSION
[
$name
]))
{
return
$_SESSION
[
$name
];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets