mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
:
git-svn-id: https://svn.fhem.de/fhem/trunk@26225 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a7e04f2553
commit
6c329dec08
@ -135,7 +135,7 @@ sub FHEMapi_CGI() {
|
||||
# Match request first without trailing / in the link part
|
||||
if($request =~ m,^(/[^/]+)(/(.*)?)?$,) {
|
||||
my $link= $1;
|
||||
my $request= $3;
|
||||
my $cmdline= $3;
|
||||
my $name;
|
||||
|
||||
# If FWEXT not found for this make a second try with a trailing slash in the link part
|
||||
@ -148,13 +148,13 @@ sub FHEMapi_CGI() {
|
||||
$name= $data{FWEXT}{$link}{deviceName};
|
||||
|
||||
# Debug "link= $link";
|
||||
# Debug "request= $request";
|
||||
# Debug "cmdline= $cmdline";
|
||||
# Debug "name= $name";
|
||||
|
||||
# return error if no such device
|
||||
return("text/plain; charset=utf-8", "No FHEMapi device for $link") unless($name);
|
||||
|
||||
return("text/plain; charset=utf-8", $request);
|
||||
return("text/plain; charset=utf-8", $cmdline);
|
||||
|
||||
|
||||
# my $fullName = $filename;
|
||||
|
Loading…
x
Reference in New Issue
Block a user