mirror of
https://github.com/github/codeql.git
synced 2026-08-04 17:33:18 +02:00
18 lines
603 B
Plaintext
18 lines
603 B
Plaintext
import csharp
|
|
import semmle.code.csharp.security.dataflow.XSSSinks
|
|
|
|
string tweakMemberLocation(Member member) {
|
|
exists(Location loc |
|
|
loc = member.getLocation() and
|
|
if loc instanceof SourceLocation
|
|
then result = loc.toString()
|
|
else result = "<outside test directory>"
|
|
)
|
|
}
|
|
|
|
from AspInlineMember inline, Member member
|
|
where member = inline.getMember()
|
|
// some members, such as ASP members inherited from DLLs, are outside the test directory,
|
|
// so we select them specially using a modified location and the normal toString
|
|
select inline, tweakMemberLocation(member), member.toString()
|