Browse Source

security hotfix

deleting remotely any file on the server.
pull/56/head
Matthias Vogel 11 years ago
parent
commit
7feaaf1036
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      system/admin/admin.php

+ 2
- 0
system/admin/admin.php View File

@ -189,6 +189,7 @@ function add_page($title, $url, $content) {
// Delete blog post // Delete blog post
function delete_post($file, $destination) { function delete_post($file, $destination) {
if(!login()) return null;
$deleted_content = $file; $deleted_content = $file;
// Get cache file // Get cache file
@ -213,6 +214,7 @@ function delete_post($file, $destination) {
// Delete static page // Delete static page
function delete_page($file, $destination) { function delete_page($file, $destination) {
if(!login()) return null;
$deleted_content = $file; $deleted_content = $file;
if (!empty($menu)) { if (!empty($menu)) {


Loading…
Cancel
Save