Created $[$name] retrieve for environment variables.
This commit is contained in:
1 parent
fa711ddf86
commit
7d6bb8355f
3 files changed
+5
-2
No files matched your search
@@ -2,6 +2,7 @@
|
||||
#include "Exception.h"
|
||||
#include "__mysql.h"
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
|
||||
namespace jet {
|
||||
|
||||
@@ -45,6 +46,8 @@ namespace jet {
|
||||
// TODO: should only allow CGI variable name. Allow variable substitution.
|
||||
} if(variable.ifNext("@")) {
|
||||
// TODO: should only allow environment variables. Allow substitution.
|
||||
} if(variable.ifNext("$")) {
|
||||
return getenv(renderVariableName(name, variable).c_str());
|
||||
} else {
|
||||
coreutils::MString splitName = renderVariableName(name, variable);
|
||||
splitName.split(".");
|
||||
|
||||
Reference in new issue
Block a user