1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-20 17:54:25 +01:00

Merge pull request #98 from owncloud/check-requesttoken-for-import

Add requesttoken
This commit is contained in:
Lukas Reschke 2014-11-05 17:16:59 +01:00
commit f9bc84916d
2 changed files with 6 additions and 2 deletions

View File

@ -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)) {

View File

@ -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>