From 8a7952a1712ee79386291e3e92e5b5cc91227812 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 12 Feb 2013 10:19:57 +0000 Subject: merge r20712 from branch 2.4 to trunk bug 2844: increase security on LocalFiles Editor, filter on files to edit. git-svn-id: http://piwigo.org/svn/trunk@20714 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/LocalFilesEditor/admin.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'plugins/LocalFilesEditor/admin.php') diff --git a/plugins/LocalFilesEditor/admin.php b/plugins/LocalFilesEditor/admin.php index ecf002658..79a34ad04 100644 --- a/plugins/LocalFilesEditor/admin.php +++ b/plugins/LocalFilesEditor/admin.php @@ -55,7 +55,6 @@ include_once(LOCALEDIT_PATH.'include/'.$page['tab'].'.inc.php'); // +-----------------------------------------------------------------------+ if (isset($_POST['restore'])) { - $edited_file = $_POST['edited_file']; $content_file = file_get_contents(get_bak_file($edited_file)); array_push($page['infos'], l10n('locfiledit_bak_loaded1'), @@ -73,7 +72,6 @@ if (isset($_POST['submit'])) } else { - $edited_file = $_POST['edited_file']; $content_file = stripslashes($_POST['text']); if (get_extension($edited_file) == 'php') { -- cgit v1.2.3