1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

make case-insensitive

This commit is contained in:
Lorenzo Yario 2024-03-14 06:10:18 -07:00 committed by GitHub
parent 954bb08762
commit f48cf068d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -559,7 +559,7 @@ if (isset($_POST['delete'])) {
if (!$dropped_post) {
if (isset($config['simple_spam']) && $config['simple_spam'] && $post['op']) {
if (!isset($_POST['simple_spam']) || $config['simple_spam']['answer'] != $_POST['simple_spam']) {
if (!isset($_POST['simple_spam']) || strtolower($config['simple_spam']['answer']) != strtolower($_POST['simple_spam'])) {
error($config['error']['simple_spam']);
}
}