Committed with db_escape instead of db_quote
[fa-stable.git] / includes / db / comments_db.inc
index 6f9ba120a7a754606ab9cae492c6fc30b0483adc..fd7af9c5e6991a6da98fd5be2c032628b07447ab 100644 (file)
@@ -17,7 +17,7 @@ function add_comments($type, $type_no, $date_, $memo_)
        {
        $date = date2sql($date_);
        $sql = "INSERT INTO ".TB_PREF."comments (type, id, date_, memo_)
-               VALUES ($type, $type_no, '$date', ".db_quote($memo_).")";
+               VALUES ($type, $type_no, '$date', ".db_escape($memo_).")";
 
        db_query($sql, "could not add comments transaction entry");
        }
@@ -35,7 +35,7 @@ function update_comments($type, $id, $date_, $memo_)
        else
        {
                $date = date2sql($date_);
-       $sql = "UPDATE ".TB_PREF."comments SET memo_=".db_quote($memo_)." WHERE type=$type AND id=$id AND date_='$date'";
+       $sql = "UPDATE ".TB_PREF."comments SET memo_=".db_escape($memo_)." WHERE type=$type AND id=$id AND date_='$date'";
        db_query($sql, "could not update comments");
        }
 }