forked from Business/BinStack
Fix warning message (Business/AccountHub#17)
This commit is contained in:
parent
589364201c
commit
a454dac629
@ -32,7 +32,7 @@ session_start(); // stick some cookies in it
|
|||||||
// renew session cookie
|
// renew session cookie
|
||||||
setcookie(session_name(), session_id(), time() + $session_length, "/", false, false);
|
setcookie(session_name(), session_id(), time() + $session_length, "/", false, false);
|
||||||
|
|
||||||
if ($_SESSION['mobile'] === TRUE) {
|
if (isset($_SESSION['mobile']) && $_SESSION['mobile'] === TRUE) {
|
||||||
header("Content-Security-Policy: "
|
header("Content-Security-Policy: "
|
||||||
. "default-src 'self';"
|
. "default-src 'self';"
|
||||||
. "object-src 'none'; "
|
. "object-src 'none'; "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user