Remove cp1251. Я сильно недооценивал трудолюбие неизвестного кодера.

This commit is contained in:
2023-01-10 19:26:14 +02:00
parent 008f36c094
commit b3810d2349
147 changed files with 267 additions and 1295 deletions

View File

@@ -29,7 +29,7 @@ if (!$u->info['admin']) {
<html lang="ru">
<head>
<title>Редактирование фильтра от спама</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.1.11.js"></script>
@@ -49,7 +49,7 @@ if (isset($_GET['del'])) {
Db::sql('replace into spam_word set id = 1, data = ?', [$spam]);
$spam = explode('|', $spam);
} elseif (isset($_POST['add'])) {
$_POST['add'] = htmlspecialchars($_POST['add'], null, 'cp1251');
$_POST['add'] = htmlspecialchars($_POST['add'], null);
echo '<div style="color: green">Слово &quot;<b>' . $_POST['add'] . '</b>&quot; добавлено.<br><br></div>';
$spam = implode('|', $spam);
$spam .= '|' . $_POST['add'];