File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
src/Mvc/Mvc.Core/src/Routing Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,14 @@ public static string GetPathByAction(
138
138
/// names from <c>RouteOptions</c>.
139
139
/// </param>
140
140
/// <returns>A absolute URI, or <c>null</c> if a URI cannot be created.</returns>
141
+ /// <remarks>
142
+ /// <para>
143
+ /// The value of <paramref name="host" /> should be a trusted value. Relying on the value of the current request
144
+ /// can allow untrusted input to influence the resulting URI unless the <c>Host</c> header has been validated.
145
+ /// See the deployment documentation for instructions on how to properly validate the <c>Host</c> header in
146
+ /// your deployment environment.
147
+ /// </para>
148
+ /// </remarks>
141
149
public static string GetUriByAction (
142
150
this LinkGenerator generator ,
143
151
HttpContext httpContext ,
@@ -189,6 +197,14 @@ public static string GetUriByAction(
189
197
/// names from <c>RouteOptions</c>.
190
198
/// </param>
191
199
/// <returns>A absolute URI, or <c>null</c> if a URI cannot be created.</returns>
200
+ /// <remarks>
201
+ /// <para>
202
+ /// The value of <paramref name="host" /> should be a trusted value. Relying on the value of the current request
203
+ /// can allow untrusted input to influence the resulting URI unless the <c>Host</c> header has been validated.
204
+ /// See the deployment documentation for instructions on how to properly validate the <c>Host</c> header in
205
+ /// your deployment environment.
206
+ /// </para>
207
+ /// </remarks>
192
208
public static string GetUriByAction (
193
209
this LinkGenerator generator ,
194
210
string action ,
Original file line number Diff line number Diff line change @@ -135,6 +135,14 @@ public static string GetPathByPage(
135
135
/// names from <c>RouteOptions</c>.
136
136
/// </param>
137
137
/// <returns>A absolute URI, or <c>null</c> if a URI cannot be created.</returns>
138
+ /// <remarks>
139
+ /// <para>
140
+ /// The value of <paramref name="host" /> should be a trusted value. Relying on the value of the current request
141
+ /// can allow untrusted input to influence the resulting URI unless the <c>Host</c> header has been validated.
142
+ /// See the deployment documentation for instructions on how to properly validate the <c>Host</c> header in
143
+ /// your deployment environment.
144
+ /// </para>
145
+ /// </remarks>
138
146
public static string GetUriByPage (
139
147
this LinkGenerator generator ,
140
148
HttpContext httpContext ,
@@ -186,6 +194,14 @@ public static string GetUriByPage(
186
194
/// names from <c>RouteOptions</c>.
187
195
/// </param>
188
196
/// <returns>A absolute URI, or <c>null</c> if a URI cannot be created.</returns>
197
+ /// <remarks>
198
+ /// <para>
199
+ /// The value of <paramref name="host" /> should be a trusted value. Relying on the value of the current request
200
+ /// can allow untrusted input to influence the resulting URI unless the <c>Host</c> header has been validated.
201
+ /// See the deployment documentation for instructions on how to properly validate the <c>Host</c> header in
202
+ /// your deployment environment.
203
+ /// </para>
204
+ /// </remarks>
189
205
public static string GetUriByPage (
190
206
this LinkGenerator generator ,
191
207
string page ,
You can’t perform that action at this time.
0 commit comments