Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5125a41

Browse files
authored
Merge pull request #1645 from Semmle/js/fix-missing-regexp-anchor-qhelp
Approved by asger-semmle
2 parents 902825f + d301659 commit 5125a41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/ql/src/Security/CWE-020/MissingRegExpAnchor.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
A related mistake is to write a regular expression with
6363
multiple alternatives, but to only include an anchor for one of the
6464
alternatives. As an example, the regular expression
65-
<code>/^www\\.example\\.com|beta\\.example\\.com/</code> will match the host
65+
<code>/^www\.example\.com|beta\.example\.com/</code> will match the host
6666
<code>evil.beta.example.com</code> because the regular expression is parsed
67-
as <code>/(^www\\.example\\.com)|(beta\\.example\\.com)/</code>
67+
as <code>/(^www\.example\.com)|(beta\.example\.com)/</code>
6868

6969
</p>
7070
</example>

0 commit comments

Comments
 (0)