Use Pascal convention

This commit is contained in:
Alvaro Muñoz
2022-10-11 11:24:07 +02:00
parent ad80642b18
commit 5c412b9363

View File

@@ -25,13 +25,13 @@ module ReflectedXss {
* is to prevent us from flagging plain-text or JSON responses as vulnerable.
*/
class HttpResponseSink extends Sink instanceof Http::ResponseSendArgument {
HttpResponseSink() { not exists(getAXSSSafeHeaderDefinition(this)) }
HttpResponseSink() { not exists(getAXssSafeHeaderDefinition(this)) }
}
/**
* Gets a HeaderDefinition that defines a XSS safe content-type for `send`.
*/
Http::HeaderDefinition getAXSSSafeHeaderDefinition(Http::ResponseSendArgument send) {
Http::HeaderDefinition getAXssSafeHeaderDefinition(Http::ResponseSendArgument send) {
exists(Http::RouteHandler h |
send.getRouteHandler() = h and
result = xssSafeContentTypeHeader(h)