Skip to content

Commit

Permalink
Fixed a possible issue with database backup filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
skoshelev committed Mar 28, 2022
1 parent 510b2d4 commit 47ff9a2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ public virtual async Task<IActionResult> BackupAction(MaintenanceModel model)
var action = Request.Form["action"];

var fileName = Request.Form["backupFileName"];
fileName = _fileProvider.GetFileName(_fileProvider.GetAbsolutePath(fileName));

var backupPath = _maintenanceService.GetBackupPath(fileName);

try
Expand Down

0 comments on commit 47ff9a2

Please sign in to comment.