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:
parent
0341a38995
commit
a8a80ee043
@ -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();
|
||||
|
@ -21,6 +21,8 @@
|
||||
success: function(data){
|
||||
if(data.status == 'success'){
|
||||
base.options['on_success'](data);
|
||||
} else { // On failure
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user