summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-18 14:38:05 +0200
committerczaks <marcin@6irc.net>2014-04-18 14:38:05 +0200
commit2d342746720df7031128571ae8328a15513b26d7 (patch)
tree4608d155bf52ab105256d2d1e76f38df91d2a8e7 /inc
parent1fb362a7c0d9ce3250f9ff167171dab4add65743 (diff)
fix posting of ı and İ, possibly a bit more xD
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php4
1 files changed, 3 insertions, 1 deletions
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);