mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
add csrf token to translate view
This commit is contained in:
parent
22916ce8a0
commit
2d04bbe4ee
@ -23,6 +23,8 @@ require_once('../libs/common.php');
|
|||||||
require_once('../libs/operator.php');
|
require_once('../libs/operator.php');
|
||||||
require_once('../libs/pagination.php');
|
require_once('../libs/pagination.php');
|
||||||
|
|
||||||
|
csrfchecktoken();
|
||||||
|
|
||||||
function compare_localization_by_l1($a, $b)
|
function compare_localization_by_l1($a, $b)
|
||||||
{
|
{
|
||||||
if ($a == $b) {
|
if ($a == $b) {
|
||||||
@ -230,4 +232,4 @@ $page['formshow'] = $show;
|
|||||||
prepare_menu($operator);
|
prepare_menu($operator);
|
||||||
start_html_output();
|
start_html_output();
|
||||||
require('../view/translatelist.php');
|
require('../view/translatelist.php');
|
||||||
?>
|
?>
|
||||||
|
@ -44,6 +44,10 @@ require_once('inc_errors.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="translateForm" method="post" action="<?php echo $webimroot ?>/operator/translate.php">
|
<form name="translateForm" method="post" action="<?php echo $webimroot ?>/operator/translate.php">
|
||||||
|
|
||||||
|
<!-- add auth token -->
|
||||||
|
<?php print_csrf_token_input() ?>
|
||||||
|
|
||||||
<input type="hidden" name="key" value="<?php echo $page['key'] ?>"/>
|
<input type="hidden" name="key" value="<?php echo $page['key'] ?>"/>
|
||||||
<input type="hidden" name="target" value="<?php echo $page['target'] ?>"/>
|
<input type="hidden" name="target" value="<?php echo $page['target'] ?>"/>
|
||||||
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
|
||||||
@ -77,4 +81,4 @@ require_once('inc_errors.php');
|
|||||||
} /* content */
|
} /* content */
|
||||||
|
|
||||||
require_once('inc_main.php');
|
require_once('inc_main.php');
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user