| ... | ... |
@@ -53,7 +53,7 @@ unset($v); |
| 53 | 53 |
// as of CVE-2026-115560, you can no longer set these settings if |
| 54 | 54 |
// session.upload_progress.enabled is set to 'On' |
| 55 | 55 |
if(!isset($_SESSION)) {
|
| 56 |
- if (ini_get('session.upload_progress.enabled' == 0)) {
|
|
| 56 |
+ if (ini_get('session.upload_progress.enabled' == 0) && (version_compare(PHP_VERSION, '7.3.0', '>='))) {
|
|
| 57 | 57 |
ini_set('session.cookie_httponly', '1');
|
| 58 | 58 |
ini_set('session.cookie_samesite', 'Lax');
|
| 59 | 59 |
session_start(); |
| ... | ... |
@@ -30,7 +30,7 @@ else $current = "login"; |
| 30 | 30 |
if(!empty($_POST['submit']) && $current == "login") {
|
| 31 | 31 |
// as of CVE-2026-115560, you can no longer set these settings if |
| 32 | 32 |
// session.upload_progress.enabled is set to 'On' |
| 33 |
- if (ini_get('session.upload_progress.enabled' == 0)) {
|
|
| 33 |
+ if (ini_get('session.upload_progress.enabled' == 0) && (version_compare(PHP_VERSION, '7.3.0', '>='))) {
|
|
| 34 | 34 |
ini_set('session.cookie_httponly', '1');
|
| 35 | 35 |
ini_set('session.cookie_samesite', 'Lax');
|
| 36 | 36 |
session_start(); |
| ... | ... |
@@ -73,7 +73,7 @@ |
| 73 | 73 |
// as of CVE-2026-115560, you can no longer set these settings if |
| 74 | 74 |
// session.upload_progress.enabled is set to 'On' |
| 75 | 75 |
if(!isset($_SESSION)) {
|
| 76 |
- if (ini_get('session.upload_progress.enabled' == 0)) {
|
|
| 76 |
+ if (ini_get('session.upload_progress.enabled' == 0) && (version_compare(PHP_VERSION, '7.3.0', '>='))) {
|
|
| 77 | 77 |
ini_set('session.cookie_httponly', '1');
|
| 78 | 78 |
ini_set('session.cookie_samesite', 'Lax');
|
| 79 | 79 |
session_start(); |
| ... | ... |
@@ -97,7 +97,7 @@ |
| 97 | 97 |
// as of CVE-2026-115560, you can no longer set these settings if |
| 98 | 98 |
// session.upload_progress.enabled is set to 'On' |
| 99 | 99 |
if(!isset($_SESSION)) {
|
| 100 |
- if (ini_get('session.upload_progress.enabled' == 0)) {
|
|
| 100 |
+ if (ini_get('session.upload_progress.enabled' == 0) && (version_compare(PHP_VERSION, '7.3.0', '>='))) {
|
|
| 101 | 101 |
ini_set('session.cookie_httponly', '1');
|
| 102 | 102 |
ini_set('session.cookie_samesite', 'Lax');
|
| 103 | 103 |
session_start(); |