Zeile 116 | Zeile 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 242 | Zeile 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 430 | Zeile 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; }
|