| @@ 348-349 (lines=2) @@ | ||
| 345 | $other_passwords['iconv'] = sha1(strtolower(iconv('UTF-8', $modSettings['previousCharacterSet'], $user_settings['member_name'])) . un_htmlspecialchars(iconv('UTF-8', $modSettings['previousCharacterSet'], $_POST['passwrd']))); |
|
| 346 | ||
| 347 | // Say it aint so, iconv failed! |
|
| 348 | if (empty($other_passwords['iconv']) && function_exists('mb_convert_encoding')) |
|
| 349 | $other_passwords[] = sha1(strtolower(mb_convert_encoding($user_settings['member_name'], 'UTF-8', $modSettings['previousCharacterSet'])) . un_htmlspecialchars(mb_convert_encoding($_POST['passwrd'], 'UTF-8', $modSettings['previousCharacterSet']))); |
|
| 350 | } |
|
| 351 | } |
|
| 352 | ||
| @@ 3452-3456 (lines=5) @@ | ||
| 3449 | } |
|
| 3450 | ||
| 3451 | // Too many images?! |
|
| 3452 | if (!empty($sig_limits[3]) && (substr_count(strtolower($unparsed_signature), '[img') + substr_count(strtolower($unparsed_signature), '<img')) > $sig_limits[3]) |
|
| 3453 | { |
|
| 3454 | $txt['profile_error_signature_max_image_count'] = sprintf($txt['profile_error_signature_max_image_count'], $sig_limits[3]); |
|
| 3455 | return 'signature_max_image_count'; |
|
| 3456 | } |
|
| 3457 | ||
| 3458 | // What about too many smileys! |
|
| 3459 | $smiley_parsed = $unparsed_signature; |
|