widget/reply: formatting syntax for <links>
[minimedit.git] / page.php
index 8a37533f4c6e78e928980c5a92454f3e589be83d..e634a3891896f120d67a75792c799cca45107609 100644 (file)
--- a/page.php
+++ b/page.php
@@ -16,7 +16,7 @@ $staticpage = "$request.html";
 if (file_exists($staticpage)) {
        if (is_link($staticpage)) {
                $target = preg_replace('/\.html$/', '', readlink($staticpage));
-               abort($target, '302 Shorthand');
+               abort($target, '307 Shorthand');
        }
 }
 elseif (file_exists("$request/index.html")) {
@@ -50,6 +50,7 @@ header(sprintf('Content-Security-Policy: %s', implode('; ', [
        "base-uri 'self'", # only local pages
        "frame-ancestors 'none'", # prevent malicious embedding
 ])));
+header('Referrer-Policy: no-referrer-when-downgrade');
 
 $Page->place += [
        'user'  => $User->login ?: '',