libs/web: Fixed bug where the environment table gets returned in case of an undefined variable
This commit is contained in:
parent
cd0eaf0005
commit
1a9fe9cd77
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ function Request.formvaluetable(self, prefix)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Request.getenv(self, name)
|
function Request.getenv(self, name)
|
||||||
return name and self.message.env[name] or self.message.env
|
if name then
|
||||||
|
return self.message.env[name]
|
||||||
|
else
|
||||||
|
return self.message.env
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Request.setfilehandler(self, callback)
|
function Request.setfilehandler(self, callback)
|
||||||
|
|
Loading…
Reference in a new issue