Added strip_tags for insert in addition to mysql_real_escape_string for bug 333124.

Template will strip_tags as well jic.  Those were updated at 8am.
This commit is contained in:
mike.morgan%oregonstate.edu 2006-04-07 22:49:12 +00:00
Родитель 5648735b7f
Коммит ecc1518313
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -70,8 +70,8 @@ if (isset($_POST['c_submit'])) {
$_c_id = mysql_real_escape_string($addon->ID);
$_c_user_id = mysql_real_escape_string($_auth->getId());
$_c_rating = mysql_real_escape_string($_POST['c_rating']);
$_c_title = mysql_real_escape_string($_POST['c_title']);
$_c_comments = mysql_real_escape_string($_POST['c_comments']);
$_c_title = mysql_real_escape_string(strip_tags($_POST['c_title']));
$_c_comments = mysql_real_escape_string(strip_tags($_POST['c_comments']));
$_c_commentip = mysql_real_escape_string($_SERVER['REMOTE_ADDR']);
$_sql = "INSERT INTO `feedback`