Remove cp1251. Я сильно недооценивал трудолюбие неизвестного кодера.
This commit is contained in:
4
spam.php
4
spam.php
@@ -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">Слово "<b>' . $_POST['add'] . '</b>" добавлено.<br><br></div>';
|
||||
$spam = implode('|', $spam);
|
||||
$spam .= '|' . $_POST['add'];
|
||||
|
||||
Reference in New Issue
Block a user