phpBB

Code Changes

File: phpbb/report/controller/report.php

  Unmodified   Added   Modified   Removed
Line 104Line 104
		$user_notify	= ($this->user->data['is_registered']) ? $this->request->variable('notify', 0) : false;
$reason_id = $this->request->variable('reason_id', 0);
$report_text = $this->request->variable('report_text', '', true);

		$user_notify	= ($this->user->data['is_registered']) ? $this->request->variable('notify', 0) : false;
$reason_id = $this->request->variable('reason_id', 0);
$report_text = $this->request->variable('report_text', '', true);

 

/**
* Replace Emojis and other 4bit UTF-8 chars not allowed by MySQL to UCR/NCR.
* Using their Numeric Character Reference's Hexadecimal notation.
*/
$report_text = utf8_encode_ucr($report_text);


$submit = $this->request->variable('submit', '');
$cancel = $this->request->variable('cancel', '');


$submit = $this->request->variable('submit', '');
$cancel = $this->request->variable('cancel', '');

Line 141Line 147
		// Handle request
try
{

		// Handle request
try
{

			if (!empty($submit) && sizeof($error) === 0)

			if (!empty($submit) && count($error) === 0)

			{
$this->report_handler->add_report(
(int) $id,

			{
$this->report_handler->add_report(
(int) $id,

Line 273Line 279
		}

$this->template->assign_vars(array(

		}

$this->template->assign_vars(array(

			'ERROR'				=> (sizeof($error) > 0) ? implode('<br />', $error) : '',

			'ERROR'				=> (count($error) > 0) ? implode('<br />', $error) : '',

			'S_REPORT_POST'		=> ($mode === 'pm') ? false : true,
'REPORT_TEXT' => $report_text,
'S_HIDDEN_FIELDS' => (!empty($s_hidden_fields)) ? $s_hidden_fields : null,

			'S_REPORT_POST'		=> ($mode === 'pm') ? false : true,
'REPORT_TEXT' => $report_text,
'S_HIDDEN_FIELDS' => (!empty($s_hidden_fields)) ? $s_hidden_fields : null,

Line 302Line 308
			$error[] = $visual_confirmation_response;
}


			$error[] = $visual_confirmation_response;
}


		if (sizeof($error) === 0)

		if (count($error) === 0)

		{
$captcha->reset();
}

		{
$captcha->reset();
}