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:
@@ -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
|
||||
}
|
||||
my $old=$FW_RET;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user