mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-20 17:54:25 +01:00
Add requesttoken
This commit is contained in:
parent
c124e940ea
commit
aa2d32eb61
@ -1,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
OCP\App::checkAppEnabled('bookmarks');
|
||||
|
||||
// Check if we are a user
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::callCheck();
|
||||
OCP\JSON::checkAppEnabled('bookmarks');
|
||||
|
||||
$l = new OC_l10n('bookmarks');
|
||||
if(empty($_FILES)) {
|
||||
|
@ -5,6 +5,7 @@
|
||||
* later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
/** @var array $_ */
|
||||
?>
|
||||
|
||||
<fieldset class="personalblock">
|
||||
@ -14,6 +15,7 @@
|
||||
|
||||
<form id="import_bookmark" action="<?php print_unescaped(OCP\Util::linkTo( "bookmarks", "ajax/import.php" ));?>"
|
||||
method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>"/>
|
||||
<fieldset class="personalblock">
|
||||
<?php if(isset($_['error'])): ?>
|
||||
<h3><?php p($_['error']['error']); ?></h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user