From b59c66321a9190ce4ec0197829258538efb5eb9a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 9 Oct 2014 11:02:56 +0200 Subject: allow debug param args with - in them --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index e0916c3..4e37fde 100644 --- a/it.class +++ b/it.class @@ -817,7 +817,7 @@ static function getopt($helplines, $p = array()) { foreach (preg_split('/[.,]/', $result['debug']) as $ultrad) { - $ultravar = preg_split('/[-=:]/', $ultrad); + $ultravar = preg_split('/[-=:]/', $ultrad, 2); $GLOBALS["debug_$ultravar[0]"] = isset($ultravar[1]) ? $ultravar[1] : 1; } } -- cgit v1.2.3