[TYPO3-english] Check URL validity
Tonix (Antonio Nati)
tonix at interazioni.it
Mon Nov 22 18:55:38 CET 2010
Ask for relative URL within domain, like "/my/folder/" and append it to
"http://yourdomain.com".
Regards,
Tonino
Il 22/11/2010 17:24, Gregory Loichot ha scritto:
> Hello,
>
> I have a TYPO3 4.4.4 website and I have a GET parameter (called
> source) in which a user can store an url (a realurl url that point to
> my website, in theory). This url will be used to redirect user in some
> specific conditions.
>
> My question is : is it possible (via a TYPO3 function) to check that
> the url contained in "source" parameter belongs to the TYPO3 site (and
> not to an other external url) ?
>
> Example :
> www.mydomain.com/my/page/?source=http://www.mydomain.com/my/folder/ is
> correct
> but www.mydomain.com/my/page/?source=http://www.otherdomain.com/test/
> should me rejected.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
--
------------------------------------------------------------
Inter at zioni Interazioni di Antonio Nati
http://www.interazioni.it tonix at interazioni.it
------------------------------------------------------------
More information about the TYPO3-english
mailing list