add blog=1
This commit is contained in:
parent
cbd6e2d649
commit
44ce755665
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
if(preg_match('#^/blog/([0-9]+)$#', $reqPath, $matches) || $reqPath === '/blog.php' || $reqPath === '/blog-post.php') {
|
||||
if($reqMethod !== 'GET')
|
||||
return FM_ERR | 405;
|
||||
header('Location: //flash.moe/2020/blog.php?p=' . ($matches[1] ?? filter_input(INPUT_GET, 'p', FILTER_SANITIZE_NUMBER_INT) ?? ''));
|
||||
header('Location: //flash.moe/2020/blog.php?blog=1&p=' . ($matches[1] ?? filter_input(INPUT_GET, 'p', FILTER_SANITIZE_NUMBER_INT) ?? ''));
|
||||
return FM_HIT | 302;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue