Remove cp1251. Я сильно недооценивал трудолюбие неизвестного кодера.
This commit is contained in:
@@ -2069,7 +2069,7 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
||||
);
|
||||
mysql_query(
|
||||
'INSERT INTO `items_text` (`item_id`,`time`,`login`,`text`,`city`,`x`) VALUES ("' . $itm['id'] . '","' . time() . '","' . $this->info['login'] . '","' . mysql_real_escape_string(
|
||||
htmlspecialchars($txt, null, 'cp1251')
|
||||
htmlspecialchars($txt, null)
|
||||
) . '","' . $this->info['city'] . '","' . $sx . '")'
|
||||
);
|
||||
$this->error = 'Запись успешно произведена';
|
||||
@@ -2127,7 +2127,7 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
||||
} else {
|
||||
$ins = mysql_query(
|
||||
'INSERT INTO `transfers` (`uid1`,`uid2`,`city`,`room`,`time`,`text`,`start1`) VALUES ("' . $this->info['id'] . '","' . $t['id'] . '","' . $this->info['city'] . '","' . $this->info['room'] . '","' . time() . '","' . mysql_real_escape_string(
|
||||
htmlspecialchars($_POST['textarea'], null, 'cp1251')
|
||||
htmlspecialchars($_POST['textarea'], null)
|
||||
) . '","' . time() . '")'
|
||||
);
|
||||
if ($ins) {
|
||||
|
||||
Reference in New Issue
Block a user