Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 902825f + d301659 commit 5125a41Copy full SHA for 5125a41
1 file changed
javascript/ql/src/Security/CWE-020/MissingRegExpAnchor.qhelp
@@ -62,9 +62,9 @@
62
A related mistake is to write a regular expression with
63
multiple alternatives, but to only include an anchor for one of the
64
alternatives. As an example, the regular expression
65
- <code>/^www\\.example\\.com|beta\\.example\\.com/</code> will match the host
+ <code>/^www\.example\.com|beta\.example\.com/</code> will match the host
66
<code>evil.beta.example.com</code> because the regular expression is parsed
67
- as <code>/(^www\\.example\\.com)|(beta\\.example\\.com)/</code>
+ as <code>/(^www\.example\.com)|(beta\.example\.com)/</code>
68
69
</p>
70
</example>
0 commit comments