summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it.class b/it.class
index 8402f65..7398bfb 100644
--- a/it.class
+++ b/it.class
@@ -908,6 +908,9 @@ static function getopt($usage, $p = array())
$ultravar = preg_split('/[-=:]/', $ultrad, 2);
$GLOBALS["debug_$ultravar[0]"] = isset($ultravar[1]) ? $ultravar[1] : 1;
}
+
+ # keep debug parameters in subrequests
+ $_SERVER['ULTRAHOSTNAME'] = it::replace(['^\.+' => '', '([^.])\.*$' => '\1.'], $result['debug']) . $_SERVER['ULTRAHOSTNAME'];
}
$GLOBALS['it_stdin']['args'] = $result['args'] ? $result['args'] : array("-");