Skip to content

Commit 32799db

Browse files
committed
fix delete track in web app
1 parent 71527c7 commit 32799db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: htdocs/trackEdit.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
if($_POST['ACTION'] == "trackDelete") {
228228
if($_POST['deleteTrack'] == "yes") {
229229
// delte the file
230-
$exec = "sudo rm ".$post['folder']."/".$post['filename'];
230+
$exec = 'sudo rm "'.$post['folder'].'/'.$post['filename'].'"';
231231
exec($exec);
232232
$messageSuccess = "<p>File '".$post['folder']."/".$post['filename']."' was deleted from your collection.</p>";
233233
// unset the filename and folder var

0 commit comments

Comments
 (0)