mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
JS: Add comment to VueTemplateSink class
This commit is contained in:
@@ -331,7 +331,10 @@ module DomBasedXss {
|
||||
* A write to the `template` option of a Vue instance, viewed as an XSS sink.
|
||||
*/
|
||||
class VueTemplateSink extends DomBasedXss::Sink {
|
||||
VueTemplateSink() { this = any(Vue::Instance i).getOption("template") }
|
||||
VueTemplateSink() {
|
||||
// Note: don't use Vue::Instance#getTemplate as it includes an unwanted getALocalSource() step
|
||||
this = any(Vue::Instance i).getOption("template")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user