Skip to content

Commit

Permalink
Normalize path to match configure.php file
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Nov 16, 2022
1 parent 7873d68 commit 2390c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/includes/actions/backup/delete_confirm.php
Expand Up @@ -10,7 +10,7 @@
Released under the GNU General Public License
*/

$source = realpath(DIR_FS_BACKUP . $_GET['file']);
$source = Path::normalize(DIR_FS_BACKUP . $_GET['file']);
if (Text::is_prefixed_by($source, DIR_FS_BACKUP) && Path::remove($source)) {
$messageStack->add_session(SUCCESS_BACKUP_DELETED, 'success');

Expand Down

0 comments on commit 2390c6b

Please sign in to comment.