mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
CSRF for debug screen
This commit is contained in:
parent
2a6e77752f
commit
e29a598fa5
1 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
|||
</header>
|
||||
<section class="content">
|
||||
<form id="settings-export">
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}" />
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label>Export</label>
|
||||
|
@ -25,11 +26,12 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
<form id="settings-import" method="post" action="/ghost/debug/db/import/" enctype="multipart/form-data">
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}" />
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label>Import</label>
|
||||
<input type="file" class="button-add" name="importfile"></input>
|
||||
<input type="submit" class="button-save" value="Import"></input>
|
||||
<input type="file" class="button-add" name="importfile" />
|
||||
<input type="submit" class="button-save" value="Import" />
|
||||
<p>Import from another Ghost installation. If you import a user, this will replace the current user & log you out.</p>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
Loading…
Reference in a new issue