asp.net mvc - What does 'the URL is local' mean? -


i debugging code , there check (in asp.net mvc controller)

if (url.islocalurl(returnurl)) 

so check documentation , says returns value indicates whether url local.

but mean, 'the url local'?

if hit webserver, when webserver 'the url local' ?

in asp.net mvc blog preventing open redirection attacks (c#) can find explanation of why should use it, but, tradition mvc's documentation, it's not explained how works.

you can read source presented there though: checks whether url starts / or ~/, meaning: whether relative url thereby points same domain.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -