Skip to content

Commit ed054ac

Browse files
authored
Merge pull request #6305 from intrigus-lgtm/patch-5
C# remove spurious spaces in <code> tag
2 parents 7bc18ab + 7aa19ea commit ed054ac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

csharp/ql/src/Bad Practices/UseOfSystemOutputStream.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p>Writing directly to system output streams is often used as an unstructured form of logging. A
77
proper logging mechanism is a better way to direct messages to the desired location and also
88
ensures that no critical information is leaked to the standard outputs. The rule points out any
9-
call to the <code> Console.Write*(...)</code> methods and any access to <code>Console.Out</code> or
9+
call to the <code>Console.Write*(...)</code> methods and any access to <code>Console.Out</code> or
1010
<code>Console.Error</code>.</p>
1111

1212
</overview>

csharp/ql/src/Input Validation/ValueShadowingServerVariable.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p>Relying on <code>HttpRequest</code> to provide access to a particular server variable is not
77
safe as it can be overridden by the client. The <code>HttpRequest</code> class implements an
88
indexer to provide a simplified, combined access to its <code>QueryString</code>, <code>Form</code>
9-
, <code>Cookies</code>, or <code> ServerVariables</code> collections, in that particular order.
9+
, <code>Cookies</code>, or <code>ServerVariables</code> collections, in that particular order.
1010
When searching for a variable, the first match is returned: <code>QueryString</code> parameters
1111
hence supersede values from forms, cookies and server variables, and so on. This is a serious
1212
attack vector since an attacker could inject a value in the query string that you do not expect,

csharp/ql/src/Linq/MissedCastOpportunity.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<p>Casts are often used when you iterate over a collection of elements of a type that is known to
77
contain only elements of a different type (possibly more specific). For example, <code>List&lt;Animal
88
&gt; </code> might refer to a collection of instances of <code>Dog</code>, a class derived from
9-
<code> Animal</code>. Programmers often write a loop to iterate over the collection and cast each
10-
<code> Animal</code> in turn to <code>Dog</code> before using it</p>
9+
<code>Animal</code>. Programmers often write a loop to iterate over the collection and cast each
10+
<code>Animal</code> in turn to <code>Dog</code> before using it</p>
1111

1212
</overview>
1313
<recommendation>

0 commit comments

Comments
 (0)