mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
move RegexpMetaChars into Regexp.qll
This commit is contained in:
@@ -1237,8 +1237,18 @@ module RegExp {
|
||||
}
|
||||
}
|
||||
|
||||
private class DefaultMetaCharacter extends MetaCharacter {
|
||||
DefaultMetaCharacter() { this = ["<", "'", "\""] }
|
||||
/**
|
||||
* A meta character used by HTML.
|
||||
*/
|
||||
private class HTMLMetaCharacter extends MetaCharacter {
|
||||
HTMLMetaCharacter() { this = ["<", "'", "\""] }
|
||||
}
|
||||
|
||||
/**
|
||||
* A meta character used by regular expressions.
|
||||
*/
|
||||
private class RegexpMetaChars extends RegExp::MetaCharacter {
|
||||
RegexpMetaChars() { this = ["{", "[", "+"] }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -71,11 +71,4 @@ module RegExpInjection {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Meta characters used in the above sanitizer.
|
||||
*/
|
||||
private class RegexpMetaChars extends RegExp::MetaCharacter {
|
||||
RegexpMetaChars() { this = ["{", "[", "+"] }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user