diff options
Diffstat (limited to 'function.inc')
-rw-r--r-- | function.inc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/function.inc b/function.inc index 957ddf2ac..2c69e4fb9 100644 --- a/function.inc +++ b/function.inc @@ -21,15 +21,11 @@ function dbsave($dbase, $data, $id=0) { else { db_query("INSERT INTO $dbase SET $query") or die(mysql_error()); return mysql_insert_id(); } } -function FixQuotes ($what = "") { - $what = ereg_replace("'","''",$what); - while (eregi("\\\\'", $what)) { - $what = ereg_replace("\\\\'","'",$what); - } - return $what; +function check_input($message) { + return str_replace("\"", """, stripslashes($message)); } -function check($message) { +function check_output($message) { include "config.inc"; return nl2br(strip_tags(stripslashes($message), $allowed_html)); } |