Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
0e548c653a |
@ -33,7 +33,7 @@ session_start(); // stick some cookies in it
|
||||
// renew session cookie
|
||||
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: "
|
||||
. "default-src 'self';"
|
||||
. "object-src 'none'; "
|
||||
|
Loading…
x
Reference in New Issue
Block a user