phpBB

Code Changes

File: includes/acp/acp_language.php

  Unmodified   Added   Modified   Removed
Line 244Line 244
			break;

case 'install':

			break;

case 'install':

 
				if (!check_link_hash($request->variable('hash', ''), 'acp_language'))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}


				$lang_iso = request_var('iso', '');
$lang_iso = basename($lang_iso);


				$lang_iso = request_var('iso', '');
$lang_iso = basename($lang_iso);


Line 423Line 428
					'ISO'			=> htmlspecialchars($lang_ary['iso']),
'LOCAL_NAME' => htmlspecialchars($lang_ary['local_name'], ENT_COMPAT, 'UTF-8'),
'NAME' => htmlspecialchars($lang_ary['name'], ENT_COMPAT, 'UTF-8'),

					'ISO'			=> htmlspecialchars($lang_ary['iso']),
'LOCAL_NAME' => htmlspecialchars($lang_ary['local_name'], ENT_COMPAT, 'UTF-8'),
'NAME' => htmlspecialchars($lang_ary['name'], ENT_COMPAT, 'UTF-8'),

					'U_INSTALL'		=> $this->u_action . '&action=install&iso=' . urlencode($lang_ary['iso']))

					'U_INSTALL'		=> $this->u_action . '&action=install&iso=' . urlencode($lang_ary['iso']) . '&hash=' . generate_link_hash('acp_language'))

				);
}
}

				);
}
}