Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question