Index: trunk/FACT++/www/smartfact/index.php
===================================================================
--- trunk/FACT++/www/smartfact/index.php	(revision 14228)
+++ trunk/FACT++/www/smartfact/index.php	(revision 14232)
@@ -142,5 +142,5 @@
 {
     // Filename
-    $args = '"scripts/'.$_GET['start'].'"';
+    $script = '"scripts/'.$_GET['start'].'"';
 
     unset($_GET['start']);
@@ -157,5 +157,5 @@
     {
         if ($_GET['label']>=0)
-            $args .= ":".$_GET['label'];
+            $script .= ":".$_GET['label'];
         unset($_GET['label']);
     }
@@ -170,11 +170,15 @@
 
     // Arguments
-    foreach ($_GET as $key => $value)
-        $args .= ' --arg:"'.$key.'='.escape($value).'"';
-
-    if (!empty($args) && empty($msg))
-    {
+    if (!empty($script) && empty($msg))
+    {
+        //foreach ($_GET as $key => $value)
+        //    $args .= ' --arg:"'.$key.'='.escape($value).'"';
+
+        $args = "";
+        foreach ($_GET as $key => $value)
+            $args .= ' '.$key.'="'.escape($value).'"';
+
         // $args = "filename":label --arg:"key1=value" --arg:"key2=value"
-        $cmd = $path.'/dimctrl --user "'.$_SERVER['PHP_AUTH_USER'].'"  --start '.$args;
+        $cmd = $path.'/dimctrl --user "'.$_SERVER['PHP_AUTH_USER'].'"  --start "'.$script.escape($args).'"';
 
         // Execute
