diff --git a/plugins/admin/systems/class_goFaxServer.inc b/plugins/admin/systems/class_goFaxServer.inc
index 934bc6c095282c17d01f125fdc955ae0c5e065b5..8572f6dfafd29cfa8de555f1c1fa8e72548dba97 100644 (file)
var $goFaxAdmin = "";
var $goFaxPassword = "";
var $goFaxServerStatus = "";
+ var $cn = "";
function goFaxServer($config,$dn)
{
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");