зеркало из https://github.com/github/codeql.git
Ruby: rack - use Mimetype rather than MimeType in predicate names for consistency with concepts
This commit is contained in:
Родитель
977ceb89fd
Коммит
75ccbe58ee
|
@ -5,7 +5,7 @@
|
|||
private import codeql.ruby.ApiGraphs
|
||||
private import codeql.ruby.DataFlow
|
||||
|
||||
private predicate mimeTypeMatches(string ext, string mimeType) {
|
||||
private predicate mimetypeMatches(string ext, string mimeType) {
|
||||
ext = ".123" and mimeType = "application/vnd.lotus-1-2-3"
|
||||
or
|
||||
ext = ".3dml" and mimeType = "text/vnd.in3d.3dml"
|
||||
|
@ -1306,6 +1306,6 @@ module Mime {
|
|||
}
|
||||
|
||||
/** Gets the canonical MIME type string returned by this call. */
|
||||
string getMimeType() { mimeTypeMatches(this.getExtension(), result) }
|
||||
string getMimetype() { mimetypeMatches(this.getExtension(), result) }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ query predicate rackResponseContentTypes(
|
|||
}
|
||||
|
||||
query predicate mimetypeCalls(Rack::Mime::MimetypeCall c, string mimetype) {
|
||||
mimetype = c.getMimeType()
|
||||
mimetype = c.getMimetype()
|
||||
}
|
||||
|
||||
query predicate redirectResponses(Rack::Response::RedirectResponse resp, DataFlow::Node location) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче