security hotfix

deleting remotely any file on the server.
This commit is contained in:
Matthias Vogel 2014-07-12 12:38:39 +02:00
commit 7feaaf1036

View file

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