V
V
VanilaSpirit2020-07-28 08:14:38
ASP.NET
VanilaSpirit, 2020-07-28 08:14:38

ASP.NET MVC how to filter multiple slashes in a row?

Let's say we have such a path localhost/price
How to make it so that if the user enters localhost///////////price - extra slashes are removed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-07-29
@firedragon

And you are touchy. Then look at the request pipeline and embed your middleware that will remove these slashes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question