Replace generic status 302 by specific HTTP2 options.
In particular prevent unrelated posts after login.
if (isset($_REQUEST['goto'])) {
$target = ltrim($_REQUEST['goto'], '/');
- abort("/$target", 302);
+ abort("/$target", '303 Return');
}
if (isset($Page->raw)) {
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")) {