mirror of
https://github.com/unraid/webgui.git
synced 2026-03-05 16:08:38 -06:00
remove leading dot in login cookie domain
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
session_name("unraid_".md5(strstr($_SERVER['HTTP_HOST'].':', ':', true)));
|
||||
session_set_cookie_params(0, '/', strstr($_SERVER['HTTP_HOST'].':', ':', true), array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_set_cookie_params(0, '/', null, array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_start();
|
||||
|
||||
// authorized
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
session_name("unraid_".md5(strstr($_SERVER['HTTP_HOST'].':', ':', true)));
|
||||
session_set_cookie_params(0, '/', strstr($_SERVER['HTTP_HOST'].':', ':', true), array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_set_cookie_params(0, '/', null, array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_start();
|
||||
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
|
||||
Reference in New Issue
Block a user