git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
widget/reply: formatting syntax for _italics_
[minimedit.git]
/
page.php
diff --git
a/page.php
b/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));
if (file_exists($staticpage)) {
if (is_link($staticpage)) {
$target = preg_replace('/\.html$/', '', readlink($staticpage));
- abort($target, '30
2
Shorthand');
+ abort($target, '30
7
Shorthand');
}
}
elseif (file_exists("$request/index.html")) {
}
}
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
])));
"base-uri 'self'", # only local pages
"frame-ancestors 'none'", # prevent malicious embedding
])));
+header('Referrer-Policy: no-referrer-when-downgrade');
$Page->place += [
'user' => $User->login ?: '',
$Page->place += [
'user' => $User->login ?: '',