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
{{ message }}
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
There are some call sites in this repo that invoke Uri.EscapeDataString. Instead of calling this static API, the caller should make an effort to use the IUrlEncoder that has been configured by the application developer, as it could have more permissive or restrictive logic than that of Uri.EscapeDataString.
If you have access to an IServiceProvider instance, import the Microsoft.AspNet.WebUtilities.Encoders namespace (in the Microsoft.AspNet.Http.Extensions package) and call the IServiceProvider.GetUrlEncoder() extension method
If you do not have access to an IServiceProvider, you can get a default static singleton instance of an IUrlEncoder via the UrlEncoder.Default static property (namespace Microsoft.AspNet.WebUtilities.Encoders, project Microsoft.AspNet.WebUtilities).
The text was updated successfully, but these errors were encountered:
There are some call sites in this repo that invoke Uri.EscapeDataString. Instead of calling this static API, the caller should make an effort to use the IUrlEncoder that has been configured by the application developer, as it could have more permissive or restrictive logic than that of Uri.EscapeDataString.
If you have access to an IServiceProvider instance, import the
Microsoft.AspNet.WebUtilities.Encoders
namespace (in theMicrosoft.AspNet.Http.Extensions
package) and call theIServiceProvider.GetUrlEncoder()
extension methodIf you do not have access to an IServiceProvider, you can get a default static singleton instance of an
IUrlEncoder
via theUrlEncoder.Default
static property (namespaceMicrosoft.AspNet.WebUtilities.Encoders
, projectMicrosoft.AspNet.WebUtilities
).The text was updated successfully, but these errors were encountered: