diff --git a/Namcap/util.py b/Namcap/util.py index 21d7163..145d87b 100644 --- a/Namcap/util.py +++ b/Namcap/util.py @@ -70,6 +70,11 @@ def script_type(path): if m != None: cmd = m.group(1).split() name = cmd[0] + + #Fix (FS#7933) + if not re.match('^[a-zA-Z0-9_-]*$', name): + return None + if name == 'env': name = cmd[1] return name