Skip to content

Commit

Permalink
fix: delete tracks in web app trackEdit.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MiczFlor authored Sep 8, 2018
1 parent 376f647 commit 684da9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/trackEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
if($_POST['ACTION'] == "trackDelete") {
if($_POST['deleteTrack'] == "yes") {
// delte the file
$exec = "sudo rm ".$post['folder']."/".$post['filename'];
$exec = 'sudo rm "'.$post['folder'].'/'.$post['filename'].'"';
exec($exec);
$messageSuccess = "<p>File '".$post['folder']."/".$post['filename']."' was deleted from your collection.</p>";
// unset the filename and folder var
Expand Down

0 comments on commit 684da9e

Please sign in to comment.