mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
change useless cat query to only flag instances that can be re-written to
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
import javascript
|
||||
import semmle.javascript.security.UselessUseOfCat
|
||||
|
||||
|
||||
from UselessCat cat
|
||||
select cat.getCommand(), "Useless use of `cat` in $@.", cat, "command execution"
|
||||
select cat, "Useless use of `cat`. Can be replaced with: " + createReadFileCall(cat)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user