From 45cc0159af05648f390952e05e30f4e7c68f37ce Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 24 Aug 2023 18:48:07 +0800 Subject: [PATCH] Update index.py --- plugins/php/index.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/php/index.py b/plugins/php/index.py index 46cccb5b1..c0d94d665 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -50,13 +50,16 @@ def getArgs(): if args_len == 1: t = args[0].strip('{').strip('}') - t = t.split(':') + if t.strip() == '': + tmp = [] + else: + t = t.split(':', 1) + tmp[t[0]] = t[1] tmp[t[0]] = t[1] elif args_len > 1: for i in range(len(args)): t = args[i].split(':') tmp[t[0]] = t[1] - return tmp