From 7c9f391d66e4e984a1d23632811ca885d7266676 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Mon, 11 Feb 2019 18:20:28 +0000 Subject: [PATCH] Added a check for a writable PHP session path. --- WEB-INF/templates/footer.tpl | 2 +- dbinstall.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index f6ad5a36..693dc292 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.36.4714 | Copyright © Anuko | +  Anuko Time Tracker 1.18.36.4715 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index a3cdd9cc..d39871f8 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -92,6 +92,11 @@ if ($request->isGet()) { echo('Error: PHP version is not high enough: '.phpversion().'. Required: '.$required_version.'.
'); } + // Check is PHP session path is writeable. + if (!is_writable(session_save_path())) { + echo('Error: PHP session path '.session_save_path().' is not writable.
'); + } + // Depending on DSN, require either mysqli or mysql extensions. if (strrpos(DSN, 'mysqli://', -strlen(DSN)) !== FALSE) { if (extension_loaded('mysqli')) { -- 2.20.1