move RegexpMetaChars into Regexp.qll

This commit is contained in:
Erik Krogh Kristensen
2021-05-14 13:23:36 +02:00
parent 33641c84f6
commit 3766678d60
2 changed files with 12 additions and 9 deletions

View File

@@ -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 = ["{", "[", "+"] }
}
/**

View File

@@ -71,11 +71,4 @@ module RegExpInjection {
)
}
}
/**
* Meta characters used in the above sanitizer.
*/
private class RegexpMetaChars extends RegExp::MetaCharacter {
RegexpMetaChars() { this = ["{", "[", "+"] }
}
}