Missing requesttoken.
This commit is contained in:
parent
ddf321d534
commit
42a5cd21b9
|
@ -18,6 +18,7 @@ $maxUploadFilesize = min($maxUploadFilesize ,$freeSpace);
|
||||||
|
|
||||||
$tmpl = new OCP\Template('contacts', 'part.importaddressbook');
|
$tmpl = new OCP\Template('contacts', 'part.importaddressbook');
|
||||||
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
|
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
|
||||||
|
$tmpl->assign('requesttoken', $_SERVER['HTTP_REQUESTTOKEN']);
|
||||||
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
|
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
|
||||||
$tmpl->printpage();
|
$tmpl->printpage();
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<th><?php echo $l->t('Select address book to import to:') ?></th>
|
<th><?php echo $l->t('Select address book to import to:') ?></th>
|
||||||
<td>
|
<td>
|
||||||
<form id="import_upload_form" action="<?php echo OCP\Util::linkTo('contacts', 'ajax/uploadimport.php'); ?>" method="post" enctype="multipart/form-data" target="import_upload_target">
|
<form id="import_upload_form" action="<?php echo OCP\Util::linkTo('contacts', 'ajax/uploadimport.php'); ?>" method="post" enctype="multipart/form-data" target="import_upload_target">
|
||||||
|
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>">
|
||||||
<select id="book" name="book" class="float">
|
<select id="book" name="book" class="float">
|
||||||
<?php
|
<?php
|
||||||
$contacts_options = OC_Contacts_Addressbook::all(OCP\USER::getUser());
|
$contacts_options = OC_Contacts_Addressbook::all(OCP\USER::getUser());
|
||||||
|
|
Loading…
Reference in New Issue