Ruby: rack - use Mimetype rather than MimeType in predicate names for consistency with concepts

This commit is contained in:
Alex Ford 2023-06-13 12:44:29 +01:00
Родитель 977ceb89fd
Коммит 75ccbe58ee
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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) {