Vergleich admin/modules/config/mycode.php - 1.4.8 - 1.4.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 116Zeile 116
			$new_mycode = array(
'title' => $db->escape_string($mybb->input['title']),
'description' => $db->escape_string($mybb->input['description']),

			$new_mycode = array(
'title' => $db->escape_string($mybb->input['title']),
'description' => $db->escape_string($mybb->input['description']),

				'regex' => $db->escape_string($mybb->input['regex']),

				'regex' => $db->escape_string(str_replace("\x0", "", $mybb->input['regex'])),

				'replacement' => $db->escape_string($mybb->input['replacement']),
'active' => $db->escape_string($mybb->input['active']),
'parseorder' => intval($mybb->input['parseorder'])

				'replacement' => $db->escape_string($mybb->input['replacement']),
'active' => $db->escape_string($mybb->input['active']),
'parseorder' => intval($mybb->input['parseorder'])

Zeile 242Zeile 242
			$mycode = array(
'title' => $db->escape_string($mybb->input['title']),
'description' => $db->escape_string($mybb->input['description']),

			$mycode = array(
'title' => $db->escape_string($mybb->input['title']),
'description' => $db->escape_string($mybb->input['description']),

				'regex' => $db->escape_string($mybb->input['regex']),

				'regex' => $db->escape_string(str_replace("\x0", "", $mybb->input['regex'])),

				'replacement' => $db->escape_string($mybb->input['replacement']),
'active' => $db->escape_string($mybb->input['active']),
'parseorder' => intval($mybb->input['parseorder'])

				'replacement' => $db->escape_string($mybb->input['replacement']),
'active' => $db->escape_string($mybb->input['active']),
'parseorder' => intval($mybb->input['parseorder'])

Zeile 430Zeile 430
function test_regex($regex, $replacement, $test)
{
$array = array();

function test_regex($regex, $replacement, $test)
{
$array = array();

	$array['actual'] = @preg_replace("#".$regex."#si", $replacement, $test);

	$array['actual'] = @preg_replace("#".str_replace("\x0", "", $regex)."#si", $replacement, $test);

	$array['html'] = htmlspecialchars($array['actual']);
return $array;
}

	$array['html'] = htmlspecialchars($array['actual']);
return $array;
}