mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Use DEFAULT_CHARSET
constant instead of hardcoded string (#1734)
* Use `DEFAULT_CHARSET` constant instead of hardcoded string * Update CHANGELOG.md * Update defines.php * Update info.php * Updated * Update page_header.tpl * Update index.tpl * Update index.tpl
This commit is contained in:
parent
616a19351f
commit
e5aaaf4abd
20 changed files with 35 additions and 33 deletions
|
@ -481,7 +481,7 @@ foreach ($profile_fields as $field => $can_edit) {
|
|||
if ($submit && $sig != $pr_data['user_sig']) {
|
||||
$sig = prepare_message($sig);
|
||||
|
||||
if (mb_strlen($sig, 'UTF-8') > $bb_cfg['max_sig_chars']) {
|
||||
if (mb_strlen($sig, DEFAULT_CHARSET) > $bb_cfg['max_sig_chars']) {
|
||||
$errors[] = $lang['SIGNATURE_TOO_LONG'];
|
||||
} elseif (preg_match('#<(a|b|i|u|table|tr|td|img) #i', $sig) || preg_match('#(href|src|target|title)=#i', $sig)) {
|
||||
$errors[] = $lang['SIGNATURE_ERROR_HTML'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue