Vergleich inc/datahandlers/user.php - 1.6.11 - 1.6.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 90Zeile 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 116Zeile 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 283Zeile 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 544Zeile 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']));