1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-12-01 05:24:11 +01:00

Manage crsf protection in bookmark add popup

This commit is contained in:
Brice Maron 2012-08-07 20:22:52 +00:00
parent 0341a38995
commit a8a80ee043
3 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,7 @@ foreach($qtags as $tag) {
}
$tmpl = new OCP\Template( 'bookmarks', 'addBm', 'empty' );
$tmpl->assign('requesttoken', OC_Util::callRegister());
$tmpl->assign('bookmark', $bm);
$tmpl->assign('tags', json_encode($tags), false);
$tmpl->printPage();

View File

@ -21,6 +21,8 @@
success: function(data){
if(data.status == 'success'){
base.options['on_success'](data);
} else { // On failure
}
}
});

View File

@ -47,6 +47,7 @@
<input type="checkbox" <?php if($_['bookmark']['is_public']){echo 'checked="checked"';} ?> id="is_public" name="is_public">
<label for="is_public" class="is_public_label"><?php echo $l->t("Make this link public");?></label>
<input type="hidden" class="record_id" value="" name="record_id" />
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>">
</li>
</ul>