mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
security hotfix
deleting remotely any file on the server.
This commit is contained in:
parent
c7441b84f6
commit
7feaaf1036
1 changed files with 2 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ function add_page($title, $url, $content) {
|
|||
|
||||
// Delete blog post
|
||||
function delete_post($file, $destination) {
|
||||
if(!login()) return null;
|
||||
$deleted_content = $file;
|
||||
|
||||
// Get cache file
|
||||
|
|
@ -213,6 +214,7 @@ function delete_post($file, $destination) {
|
|||
|
||||
// Delete static page
|
||||
function delete_page($file, $destination) {
|
||||
if(!login()) return null;
|
||||
$deleted_content = $file;
|
||||
|
||||
if (!empty($menu)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue