2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@26222 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2022-07-13 17:36:21 +00:00
parent f39ed7069b
commit 03c04e66ff

View File

@ -76,7 +76,7 @@ sub FHEMapi_Define($$) {
my @a = split("[ \t]+", $def, 5); my @a = split("[ \t]+", $def, 5);
return "Usage: define <name> FHEMapi <infix> <directory> <friendlyname>" if(int(@a) != 2); return "Usage: define <name> FHEMapi" if(int(@a) != 2);
my $name= $a[0]; my $name= $a[0];
my $infix= 'api'; my $infix= 'api';
my $directory= 'www/api'; my $directory= 'www/api';
@ -130,7 +130,7 @@ sub FHEMapi_CGI() {
my ($request) = @_; # /$infix/filename my ($request) = @_; # /$infix/filename
# Debug "request= $request"; Debug "request= $request";
# Match request first without trailing / in the link part # Match request first without trailing / in the link part
if($request =~ m,^(/[^/]+)(/(.*)?)?$,) { if($request =~ m,^(/[^/]+)(/(.*)?)?$,) {