mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 08:48:31 -04:00
Merge pull request #4025 from IgorA100/patch-108
When save cookies via PHP >= 7.3.0, add handling of the "path" value in the options (session.php)
This commit is contained in:
1 file changed
+3
@@ -1,6 +1,9 @@
|
||||
<?php
|
||||
// Wrapper around setcookie that auto-sets samesite, and deals with older versions of php
|
||||
function zm_setcookie($cookie, $value, $options=array()) {
|
||||
if (!isset($options['path'])) {
|
||||
$options['path'] = '/';
|
||||
}
|
||||
if (!isset($options['expires'])) {
|
||||
$options['expires'] = time()+3600*24*30*12*10; // 10 years?!
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user