diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-09-09 18:07:43 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-09 18:07:43 +0200 |
commit | 436c149fbbca2c26d906dfb871bdafc8c7a2ab34 (patch) | |
tree | 9c676b4da41f4a5dbe1f651d3dec30e5f5c3b294 /core | |
parent | 46a328a75ae0646c040640d53861f3956f8aa167 (diff) | |
download | nextcloud-server-436c149fbbca2c26d906dfb871bdafc8c7a2ab34.tar.gz nextcloud-server-436c149fbbca2c26d906dfb871bdafc8c7a2ab34.zip |
Prevent referer from being sent
Nice hardening for enhanced privacy. Especially useful when using embedded viewers such as files_pdfviewer.
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/layout.base.php | 1 | ||||
-rw-r--r-- | core/templates/layout.guest.php | 1 | ||||
-rw-r--r-- | core/templates/layout.user.php | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php index 43d692c0364..b01820a05bb 100644 --- a/core/templates/layout.base.php +++ b/core/templates/layout.base.php @@ -8,6 +8,7 @@ <?php p($theme->getTitle()); ?> </title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="referrer" content="never"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"> <meta name="theme-color" content="<?php p($theme->getMailHeaderColor()); ?>"> <link rel="shortcut icon" type="image/png" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>"> diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 0fd7521271d..56b762d3266 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -8,6 +8,7 @@ <?php p($theme->getTitle()); ?> </title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="referrer" content="never"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"> <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>"> <meta name="theme-color" content="<?php p($theme->getMailHeaderColor()); ?>"> diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 59fced353d1..0910047032d 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -15,6 +15,7 @@ ?> </title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="referrer" content="never"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"> <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>"> <meta name="apple-mobile-web-app-capable" content="yes"> |