function gf_preparefordb($message, $postmode) { global $CONF_FORUM, $_CONF; // if magic quotes is on, remove the slashes from the $_POST if (get_magic_quotes_gpc()) { $message = stripslashes($message); } if ($CONF_FORUM['use_glfilter'] == 1 && ($postmode == 'html' || $postmode == 'HTML')) { $message = gf_checkHTMLforSQL($message, $postmode); } if ($CONF_FORUM['use_censor']) { $message = COM_checkWords($message); } $message = addslashes($message); return $message; }
function gf_preparefordb($message, $postmode) { global $CONF_FORUM, $_CONF; // if magic quotes is on, remove the slashes from the $_POST if (get_magic_quotes_gpc()) { $message = stripslashes($message); } // Remove Icons if database cannot store them (ie table collation needs to be utf8mb4) $message = GLText::remove4byteUtf8Chars($message); if ($CONF_FORUM['use_glfilter'] == 1 && ($postmode == 'html' || $postmode == 'HTML')) { $message = gf_checkHTMLforSQL($message, $postmode); } if ($CONF_FORUM['use_censor']) { $message = COM_checkWords($message); } $message = addslashes($message); return $message; }