From a1be4e8e66590aba628d607c3ddef72867dff14f Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 3 Jun 2018 18:46:24 +0200 Subject: [PATCH] Use POST for optin-once --- index.php | 4 ++-- shared.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 24bd391..62a4bd2 100644 --- a/index.php +++ b/index.php @@ -21,8 +21,8 @@ } $optin = ""; - if (isset($_GET['optin-once'])) { - $_COOKIE['opt-in'] = $_GET['optin-once']; + if (isset($_POST['optin-once'])) { + $_COOKIE['opt-in'] = $_POST['optin-once']; } if (isset($_COOKIE['opt-in'])) { $opt = $_COOKIE['opt-in']; diff --git a/shared.php b/shared.php index 4ea386f..e95483a 100644 --- a/shared.php +++ b/shared.php @@ -132,7 +132,7 @@ if (opted_in('y')) { echo ''; } else { - echo "
Embedded content has been disabled to protect your privacy.


Click here to load the videos on this site once,

or click here to allow them permanently,

" . "or click here to watch the video on YouTube:
" . $youtube['link'] . "



Please note that by enabling this video, data is transferred
to YouTube LLC, and is subject to their privacy policy.
"; + echo "
Embedded content has been disabled to protect your privacy.




or click here to allow them permanently,

" . "or click here to watch the video on YouTube:
" . $youtube['link'] . "



Please note that by enabling this video, data is transferred
to YouTube LLC, and is subject to their privacy policy.
"; } } else { // TODO: HTML5 video