diff --git a/package_linter.py b/package_linter.py index 526dc86..a3073ec 100755 --- a/package_linter.py +++ b/package_linter.py @@ -904,7 +904,7 @@ class Configurations(TestSuite): alias_path = alias[-1] # Ugly hack to ignore cases where aliasing to a specific file (e.g. favicon.ico or foobar.html) - if "." in alias_path[-5]: + if "." in alias_path[-5:]: continue # For path traversal issues to occur, both of those are needed: