Skip to content

Commit 6d899be

Browse files
committed
JavaScript経由+確認のためのヘッダ付きの時にのみ管理者ログインが可能になるように。
1 parent 7cf1261 commit 6d899be

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

petitnote/functions.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ function check_aikotoba(): bool {
166166
function adminpost(): void {
167167
global $second_pass,$en;
168168

169+
//Fetch API以外からのPOSTを拒否
170+
check_post_via_javascript();
171+
169172
check_same_origin();
170173
check_password_input_error_count();
171174
session_sta();
@@ -187,6 +190,9 @@ function adminpost(): void {
187190
function admin_del(): void {
188191
global $second_pass,$en;
189192

193+
//Fetch API以外からのPOSTを拒否
194+
check_post_via_javascript();
195+
190196
check_same_origin();
191197
check_password_input_error_count();
192198

petitnote/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
//Petit Note (c)さとぴあ @satopian 2021-2025
33
//1スレッド1ログファイル形式のスレッド式画像掲示板
4-
$petit_ver='v1.87.1';
5-
$petit_lot='lot.20250522';
4+
$petit_ver='v1.87.2';
5+
$petit_lot='lot.20250523';
66

77
$lang = ($http_langs = $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? '')
88
? explode( ',', $http_langs )[0] : '';

0 commit comments

Comments
 (0)