From: vinzv Date: Fri, 2 Sep 2016 09:26:57 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' into nightly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19df5c9b5049202812fe0f5713e295b597e067d4;p=quix0rs-gnu-social.git Merge remote-tracking branch 'upstream/master' into nightly Conflicts: lib/util.php --- 19df5c9b5049202812fe0f5713e295b597e067d4 diff --cc extlib/DB.php index b9b5c4a79f,b9b5c4a79f..f36f919fe9 --- a/extlib/DB.php +++ b/extlib/DB.php @@@ -964,7 -964,7 +964,7 @@@ class DB_Error extends PEAR_Erro { 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); diff --cc lib/util.php index 985b3773df,a177c92a25..9815916ad1 --- a/lib/util.php +++ b/lib/util.php @@@ -581,7 -580,16 +581,20 @@@ function common_canonical_email($email 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';