mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
remove unnecessary module qualifier
This commit is contained in:
@@ -347,7 +347,7 @@ module DomBasedXss {
|
||||
/**
|
||||
* A write to the `template` option of a Vue instance, viewed as an XSS sink.
|
||||
*/
|
||||
class VueTemplateSink extends DomBasedXss::Sink {
|
||||
class VueTemplateSink extends Sink {
|
||||
VueTemplateSink() {
|
||||
// Note: don't use Vue::Component#getTemplate as it includes an unwanted getALocalSource() step
|
||||
this = any(Vue::Component c).getOption("template")
|
||||
@@ -358,7 +358,7 @@ module DomBasedXss {
|
||||
* The tag name argument to the `createElement` parameter of the
|
||||
* `render` method of a Vue instance, viewed as an XSS sink.
|
||||
*/
|
||||
class VueCreateElementSink extends DomBasedXss::Sink {
|
||||
class VueCreateElementSink extends Sink {
|
||||
VueCreateElementSink() {
|
||||
exists(Vue::Component c, DataFlow::FunctionNode f |
|
||||
f.flowsTo(c.getRender()) and
|
||||
@@ -370,12 +370,12 @@ module DomBasedXss {
|
||||
/**
|
||||
* A Vue `v-html` attribute, viewed as an XSS sink.
|
||||
*/
|
||||
class VHtmlSink extends Vue::VHtmlAttribute, DomBasedXss::Sink { }
|
||||
class VHtmlSink extends Vue::VHtmlAttribute, Sink { }
|
||||
|
||||
/**
|
||||
* A raw interpolation tag in a template file, viewed as an XSS sink.
|
||||
*/
|
||||
class TemplateSink extends DomBasedXss::Sink {
|
||||
class TemplateSink extends Sink {
|
||||
TemplateSink() {
|
||||
exists(Templating::TemplatePlaceholderTag tag |
|
||||
tag.isRawInterpolation() and
|
||||
@@ -388,7 +388,7 @@ module DomBasedXss {
|
||||
* A value being piped into the `safe` pipe in a template file,
|
||||
* disabling subsequent HTML escaping.
|
||||
*/
|
||||
class SafePipe extends DomBasedXss::Sink {
|
||||
class SafePipe extends Sink {
|
||||
SafePipe() { this = Templating::getAPipeCall("safe").getArgument(0) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user