mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
path traversal issue: Ignore trailing simple quotes
This commit is contained in:
parent
8fb895d258
commit
1ef85021d4
1 changed files with 1 additions and 1 deletions
|
@ -887,7 +887,7 @@ class Configurations(TestSuite):
|
||||||
# means that the app is not using the standard nginx
|
# means that the app is not using the standard nginx
|
||||||
# helper, and therefore it is likely to be replaced by
|
# helper, and therefore it is likely to be replaced by
|
||||||
# something ending with / ...
|
# something ending with / ...
|
||||||
if not location.endswith("/") \
|
if not location.strip("'").endswith("/") \
|
||||||
and (alias_path.endswith("/") or "__FINALPATH__" not in alias_path):
|
and (alias_path.endswith("/") or "__FINALPATH__" not in alias_path):
|
||||||
yield location
|
yield location
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue