diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-28 20:46:00 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-28 20:46:00 -0400 |
| commit | bd8bd3c02e6cb8e130058649e646a8c8071d3386 (patch) | |
| tree | 68b2ab27a5dcdc91e7b0569affe306306b43238c | |
| parent | 57c8e4ee7cea126e68ade4913c57a46f06d1a2b0 (diff) | |
Fix for last commit
| -rw-r--r-- | inc/functions.php | 5 | ||||
| -rw-r--r-- | post.php | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/inc/functions.php b/inc/functions.php index 9d398002..2915e1b6 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1552,8 +1552,9 @@ function ordutf8($string, &$offset) { function strip_combining_chars($str) { $chars = preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY); $str = ''; - foreach ($chars as $char) { - $ord = ordutf8($char, $o = 0); + foreach ($chars as $char) { + $o = 0; + $ord = ordutf8($char, $o); if ($ord >= 768 && $ord <= 879) continue; @@ -360,7 +360,7 @@ if (isset($_POST['delete'])) { if ($config['strip_combining_chars']) { $post['name'] = strip_combining_chars($post['name']); $post['email'] = strip_combining_chars($post['email']); - $post['subject'] = strip_combining_chars($post['name']); + $post['subject'] = strip_combining_chars($post['subject']); $post['body'] = strip_combining_chars($post['body']); } |
