Zeile 90 | Zeile 90 |
---|
}
// Check for certain characters in username (<, >, &, commas and slashes)
|
}
// Check for certain characters in username (<, >, &, commas and slashes)
|
if(strpos($username, "<") !== false || strpos($username, ">") !== false || strpos($username, "&") !== false || my_strpos($username, "\\") !== false || strpos($username, ";") !== false || strpos($username, ",") !== false || utf8_handle_4byte_string($username, false) == false)
| if(strpos($username, "<") !== false || strpos($username, ">") !== false || strpos($username, "&") !== false || my_strpos($username, "\\") !== false || strpos($username, ";") !== false || strpos($username, ",") !== false || !validate_utf8_string($username, false, false))
|
{ $this->set_error("bad_characters_username"); return false;
| { $this->set_error("bad_characters_username"); return false;
|
Zeile 116 | Zeile 116 |
---|
global $mybb;
$usertitle = &$this->data['usertitle'];
|
global $mybb;
$usertitle = &$this->data['usertitle'];
|
$usertitle = utf8_handle_4byte_string($usertitle);
| |
// Check if the usertitle is of the correct length. if($mybb->settings['customtitlemaxlength'] != 0 && my_strlen($usertitle) > $mybb->settings['customtitlemaxlength'])
| // Check if the usertitle is of the correct length. if($mybb->settings['customtitlemaxlength'] != 0 && my_strlen($usertitle) > $mybb->settings['customtitlemaxlength'])
|
Zeile 283 | Zeile 282 |
---|
{ $website = &$this->data['website'];
|
{ $website = &$this->data['website'];
|
if(empty($website) || my_strtolower($website) == 'http://' || my_strtolower($website) == 'https://' || utf8_handle_4byte_string($website, false) == false)
| if(empty($website) || my_strtolower($website) == 'http://' || my_strtolower($website) == 'https://')
|
{ $website = ''; return true;
| { $website = ''; return true;
|
Zeile 396 | Zeile 395 |
---|
$this->set_error("invalid_birthday_coppa"); return false; }
|
$this->set_error("invalid_birthday_coppa"); return false; }
|
elseif($mybb->settings['coppa'] == "deny" && $birthday['year'] > (date("Y")-13))
| elseif(($mybb->settings['coppa'] == "deny" && $birthday['year'] > (date("Y")-13)) && !is_moderator())
|
{ $this->set_error("invalid_birthday_coppa2"); return false;
| { $this->set_error("invalid_birthday_coppa2"); return false;
|
Zeile 544 | Zeile 543 |
---|
{ $this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength'])); }
|
{ $this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength'])); }
|
$profile_fields[$field] = utf8_handle_4byte_string($profile_fields[$field]);
| |
$options = $db->escape_string($profile_fields[$field]); } else {
|
$options = $db->escape_string($profile_fields[$field]); } else {
|
$profile_fields[$field] = utf8_handle_4byte_string($profile_fields[$field]);
| |
if($profilefield['maxlength'] > 0 && my_strlen($profile_fields[$field]) > $profilefield['maxlength']) { $this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength']));
| if($profilefield['maxlength'] > 0 && my_strlen($profile_fields[$field]) > $profilefield['maxlength']) { $this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength']));
|