You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Runtime.ExceptionServices/ExceptionDispatchInfo.xml
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -178,9 +178,14 @@ This method populates the <xref:System.Exception.StackTrace> property from an ar
178
178
allowing preservation of the exception object's stack trace information. .NET does not attempt to parse the
179
179
provided string value.
180
180
181
-
The caller is responsible for canonicalizing line endings if required. <xref:System.String.ReplaceLineEndings>
181
+
The caller is responsible for canonicalizing line endings if required. <xref:System.String.ReplaceLineEndings>
182
182
can be used to canonicalize line endings.
183
183
184
+
If the caller provides untrusted input to this API, this may result in the exception's stack trace containing
185
+
embedded null characters, reserved HTML or JSON characters, or other unexpected values. Applications that
186
+
display an exception's details to the user should always take care to encode the exception information at the
187
+
point where it is displayed.
188
+
184
189
]]></format>
185
190
</remarks>
186
191
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="source" /> or <paramrefname="stackTrace" /> argument was <seelangword="null" />.</exception>
0 commit comments