File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
csharp/ql/src/Security Features/CWE-079 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ without properly sanitizing the input first, allows for a cross-site scripting v
12
12
<recommendation >
13
13
14
14
<p >
15
- To guard against cross-site scripting, consider using a library providing suitable encoding
16
- functionality, such as the <code >System.Net.WebUtility</code > class to sanitize the untrusted input before writing it to the page.
17
- The references also mention other possible solutions.
15
+ To guard against cross-site scripting, consider using a library that provides suitable encoding
16
+ functionality, such as the <code >System.Net.WebUtility</code > class, to sanitize the untrusted input before writing it to the page.
17
+ For other possible solutions, see the references .
18
18
</p >
19
19
20
20
</recommendation >
@@ -26,7 +26,7 @@ leaving the website vulnerable to cross-site scripting.
26
26
</p >
27
27
<sample src =" XSSBad.cs" />
28
28
<p >
29
- Sanitizing the user-controlled data using <code >WebUtility.HtmlEncode</code > method prevents the vulnerability:
29
+ Sanitizing the user-controlled data using the <code >WebUtility.HtmlEncode</code > method prevents the vulnerability:
30
30
</p >
31
31
<sample src =" XSSGood.cs" />
32
32
You can’t perform that action at this time.
0 commit comments