17 Jun
2016
17 Jun
'16
5:01 p.m.
This is a fix for https://bugs.archlinux.org/task/49733 diff --git a/Namcap/util.py b/Namcap/util.py index 21d7163..f99ada1 100644 --- a/Namcap/util.py +++ b/Namcap/util.py @@ -70,6 +70,8 @@ def script_type(path): if m != None: cmd = m.group(1).split() name = cmd[0] + if not re.match('^[a-zA-Z0-9_-]*$', name): + return None if name == 'env': name = cmd[1] return name