mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
:
git-svn-id: https://svn.fhem.de/fhem/trunk@26224 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
22079a36d9
commit
a7e04f2553
@ -135,7 +135,7 @@ sub FHEMapi_CGI() {
|
||||
# Match request first without trailing / in the link part
|
||||
if($request =~ m,^(/[^/]+)(/(.*)?)?$,) {
|
||||
my $link= $1;
|
||||
my $filename= $3;
|
||||
my $request= $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 "filename= $filename";
|
||||
# Debug "request= $request";
|
||||
# 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", "42");
|
||||
return("text/plain; charset=utf-8", $request);
|
||||
|
||||
|
||||
# my $fullName = $filename;
|
||||
|
Loading…
x
Reference in New Issue
Block a user