diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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("-"); |