mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JavaScript: Fix getDelimiterMatchingRegexp to work on multi-line strings.
This commit is contained in:
@@ -37,6 +37,6 @@ module Templating {
|
||||
* storing it in its first (and only) capture group.
|
||||
*/
|
||||
string getDelimiterMatchingRegexp() {
|
||||
result = ".*(" + concat("\\Q" + getADelimiter() + "\\E", "|") + ").*"
|
||||
result = "(?s).*(" + concat("\\Q" + getADelimiter() + "\\E", "|") + ").*"
|
||||
}
|
||||
}
|
||||
|
||||
6
javascript/ql/test/query-tests/Security/CWE-313/tst8.yml
Normal file
6
javascript/ql/test/query-tests/Security/CWE-313/tst8.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
config: |
|
||||
[mail]
|
||||
host = smtp.mydomain.com
|
||||
port = 25
|
||||
username = {{username}}
|
||||
password = {{pwd}}
|
||||
Reference in New Issue
Block a user