[arch-projects] [namcap][PATCH] Fix FS#49733
Michael Straube
m.s.online at gmx.de
Fri Jun 17 15:01:24 UTC 2016
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
More information about the arch-projects
mailing list