]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
extrahd.cgi: Fix for Bug #12863
authorJon Murphy <jon.murphy@ipfire.org>
Fri, 2 Jun 2023 19:01:16 +0000 (14:01 -0500)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 25 Jun 2023 13:48:30 +0000 (13:48 +0000)
-Fixes remove entries in 'extrahd' via the webinterface for extrahd.cgi file.

Suggested-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Jon Murphy <jon.murphy@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
html/cgi-bin/extrahd.cgi

index 36c0efc2ef4248ad17d119abc557ca18cb40ca40..9dd3a0eeeda5c37834bab111644231605fde6f0b 100644 (file)
@@ -103,7 +103,7 @@ END
 }
 elsif ($extrahdsettings{'ACTION'} eq $Lang::tr{'delete'})
 {
-       if ( &General::system("/usr/local/bin/extrahdctrl", "umount", "$extrahdsettings{'PATH'}")) {
+       if ( &General::system("/usr/local/bin/extrahdctrl", "umount", "$extrahdsettings{'PATH'}")) {
                open( FILE, "< $devicefile" ) or die "Unable to read $devicefile";
                @tmp = <FILE>;
                close FILE;