mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
remove quotes from arguments eg. 'db_host=db', in case it does not happen by shell (eg. debuging in Netbeans)
This commit is contained in:
parent
c64c7ab787
commit
7496fbb66e
@ -131,6 +131,11 @@ switch($action)
|
||||
list($args['domain']) = explode(',', array_shift($arguments)); // domain must be first argument, to ensure right domain get's selected in header-include
|
||||
foreach($arguments as $arg)
|
||||
{
|
||||
// remove quotes from arguments eg. 'db_host=db', in case it does not happen by shell (eg. debuging in Netbeans)
|
||||
if (in_array($arg[0], ["'", '"']) && substr($arg, -1) === $arg[0])
|
||||
{
|
||||
$arg = substr($arg, 1, -1);
|
||||
}
|
||||
list($name,$value) = explode('=',$arg,2);
|
||||
if(property_exists('admin_cmd',$name)) // dont allow to overwrite admin_cmd properties
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user