From 5a73af9ea1f333fd79fb3cb42ed73f83e50651ec Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 6 Apr 2014 21:54:22 +0200 Subject: add a webm posthandler --- inc/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index 488a4117..c1607193 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -228,6 +228,12 @@ function loadConfig() { require_once 'inc/lib/recaptcha/recaptchalib.php'; if ($config['cache']['enabled']) require_once 'inc/cache.php'; + + if (in_array('webm', $config['allowed_ext_files'])) { + require_once 'inc/lib/webm/posthandler.php'; + event_handler('post', 'postHandler'); + } + event('load-config'); if ($config['debug']) { -- cgit v1.3 From 2d342746720df7031128571ae8328a15513b26d7 Mon Sep 17 00:00:00 2001 From: czaks Date: Fri, 18 Apr 2014 14:38:05 +0200 Subject: fix posting of ı and İ, possibly a bit more xD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index c1607193..b6927b4a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1273,7 +1273,9 @@ function make_comment_hex($str) { if (function_exists('iconv')) { // remove diacritics and other noise // FIXME: this removes cyrillic entirely - $str = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str); + $oldstr = $str; + $str = @iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str); + if (!$str) $str = $oldstr; } $str = strtolower($str); -- cgit v1.3