Remove cp1251. Я сильно недооценивал трудолюбие неизвестного кодера.
This commit is contained in:
@@ -603,7 +603,7 @@ class FightRequest
|
||||
$nz['time_start'] = (int)$_POST['startime2'];
|
||||
$nz['comment'] = substr($_POST['cmt'], 0, 40);
|
||||
$nz['comment'] = str_replace('"', '"', $nz['comment']);
|
||||
$nz['comment'] = htmlspecialchars($nz['comment'], null, 'cp1251');
|
||||
$nz['comment'] = htmlspecialchars($nz['comment'], null);
|
||||
if (!in_array($nz['time_start'], [60, 180, 300])) {
|
||||
$nz['time_start'] = 600;
|
||||
}
|
||||
@@ -871,7 +871,7 @@ class FightRequest
|
||||
}
|
||||
//
|
||||
if ($nz['razdel'] == 2 && isset($_POST['commentfiz'])) {
|
||||
$nz['comment'] = htmlspecialchars($_POST['commentfiz'], null, 'cp1251');
|
||||
$nz['comment'] = htmlspecialchars($_POST['commentfiz'], null);
|
||||
}
|
||||
//
|
||||
if ($nz['razdel'] == 5) {
|
||||
|
||||
Reference in New Issue
Block a user