FHEMWEB.pm: fix links to file editing (Forum #142498)

git-svn-id: https://svn.fhem.de/fhem/trunk@30392 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2025-10-14 16:11:08 +00:00
parent 1d0e297f13
commit 10caef7dfe

View File

@@ -2558,11 +2558,10 @@ FW_style($$)
FW_pO "Reload the page in the browser.$end";
} elsif($a[1] eq "edit") {
if(!%FW_editFileToPath) { # no edit was called yet
my $old=$FW_RET;
FW_style("style list",undef);
$FW_RET=$old
}
FW_style("style list",undef); # Make sure FW_editFileToPath is current
$FW_RET=$old;
my $fileName = $a[2];
my $data = "";
$fileName =~ s,.*/,,g; # Little bit of security