]> diplodocus.org Git - flac-archive/blobdiff - fa-flacd
Sanitize filename sanitization and quoting. I'm not sure why i was
[flac-archive] / fa-flacd
index 37e79a0..822f628 100755 (executable)
--- a/fa-flacd
+++ b/fa-flacd
@@ -86,12 +86,7 @@ sub flac {
     chdir($dir) or die("chdir($dir): $!");
 
     $outfile = "$album";
-    for ($outfile) {
-        s/\//_/g;
-        s/:/_/g;
-        s/'/_/g;
-        s/"/_/g;
-    }
+    $outfile =~ s/\//_/g;
 
     verbose("Running flac\n");
     $status = system('flac', '-o', "../$artist/$outfile.flac-tmp",