mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug 2844: increase security on LocalFiles Editor, filter on files to edit.
git-svn-id: http://piwigo.org/svn/branches/2.4@20712 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user