aboutsummaryrefslogtreecommitdiff
path: root/p/ext.php
diff options
context:
space:
mode:
Diffstat (limited to 'p/ext.php')
-rw-r--r--p/ext.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/p/ext.php b/p/ext.php
index 0a8c46546..b3007a4fd 100644
--- a/p/ext.php
+++ b/p/ext.php
@@ -112,6 +112,7 @@ if (!is_valid_path($absolute_filename)) {
$content_type = SUPPORTED_TYPES[$file_type];
header("Content-Type: {$content_type}");
header("Content-Disposition: inline; filename='{$file_name}'");
+header('Referrer-Policy: same-origin');
$mtime = @filemtime($absolute_filename);
if ($mtime === false) {