{
if (is_int($code)) {
$this->PEAR_Error('DB Error: ' . DB::errorMessage($code), $code,
-- $mode, $level, $debuginfo);
++ $mode, $level, $debuginfo, common_log(LOG_ERR, var_export($debuginfo,true)));
} else {
$this->PEAR_Error("DB Error: $code", DB_ERROR,
$mode, $level, $debuginfo);
return $email;
}
++<<<<<<< HEAD
+function common_purify($html, array $args=array())
++=======
+ function common_to_alphanumeric($str)
+ {
+ $filtered = preg_replace('/[^A-Za-z0-9]\s*/', '', $str);
+ if (strlen($filtered) < 1) {
+ throw new Exception('Filtered string was zero-length.');
+ }
+ return $filtered;
+ }
+
+ function common_purify($html)
++>>>>>>> upstream/master
{
require_once INSTALLDIR.'/extlib/HTMLPurifier/HTMLPurifier.auto.php';