Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
b688d287
Commit
b688d287
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge pull request #1375 from GPCsolutions/3.4-fixsessionpath
Handle default session path nicely
parents
db5fe44b
78b40eaa
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/lib/admin.lib.php
+7
-1
7 additions, 1 deletion
htdocs/core/lib/admin.lib.php
with
7 additions
and
1 deletion
htdocs/core/lib/admin.lib.php
+
7
−
1
View file @
b688d287
...
...
@@ -557,7 +557,13 @@ function listOfSessions()
global
$conf
;
$arrayofSessions
=
array
();
$sessPath
=
ini_get
(
"session.save_path"
)
.
'/'
;
// session.save_path can be returned empty so we set a default location and work from there
$sessPath
=
'/tmp'
;
$iniPath
=
ini_get
(
"session.save_path"
);
if
(
$iniPath
)
{
$sessPath
=
$iniPath
;
}
$sessPath
.
=
'/'
;
// We need the trailing slash
dol_syslog
(
'admin.lib:listOfSessions sessPath='
.
$sessPath
);
$dh
=
@
opendir
(
dol_osencode
(
$sessPath
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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