mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02: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
|
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)
|
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);
|
list($name,$value) = explode('=',$arg,2);
|
||||||
if(property_exists('admin_cmd',$name)) // dont allow to overwrite admin_cmd properties
|
if(property_exists('admin_cmd',$name)) // dont allow to overwrite admin_cmd properties
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user