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
+2 -5
View File
@@ -1,5 +1,5 @@
<?php
header('Content-Type: text/html; charset=windows-1251');
const GAME = true;
include('_incl_data/__config.php');
@@ -26,7 +26,7 @@ function go_text($v)
$v = str_replace('<', '[s3;]', $v);
$v = str_replace('>', '[s4;]', $v);
$v = str_replace(' ', ' ', $v);
$v = htmlspecialchars($v, null, 'cp1251');
$v = htmlspecialchars($v, null);
return $v;
}
@@ -82,9 +82,6 @@ if (isset($_POST['see_msg'])) {
$html = '<br><br><br><br><br><br><br><br><center>Персонажи с молчанкой не могут пользоваться телеграфом.</center>';
} else {
if (isset($_POST['to'])) {
$_POST['to'] = go_text(iconv('UTF-8', 'windows-1251', $_POST['to']));
$_POST['text'] = go_text(iconv('UTF-8', 'windows-1251', $_POST['text']));
$_POST['tema'] = go_text(iconv('UTF-8', 'windows-1251', $_POST['tema']));
if (test_line($_POST['to']) == false) {
$error = 'Пустое поле "Кому".';