[TYPO3-core] RFC: #10724: Feature: Provide a check that compare a given URL with the host, TYPO3 is running on!

Marcus Krause marcus#exp2009 at t3sec.info
Wed Mar 18 20:50:19 CET 2009


Marcus Krause schrieb am 03/18/2009 06:26 PM Uhr:
> Hi,
> 
> This is SVN patch request.
> 
> Type: Feature
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=10724
> 
> Branches: trunk
> 
> 
> Problem:
> I'd like to allow BE editors to reference resources (URL) but only if
> they are on the same host TYPO3 is running on.
> 
> Unfortunately there's no nice API to make such a check.

Attached v1 uses string comparison for url matching instead of parsing
and rebuilding an url.
Besides that, URL validation is done with filter_var().

Thanks to Olli for his input. ;-)


Marcus.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10724_v1.diff
Type: text/x-diff
Size: 4741 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090318/21094e40/attachment.diff 


More information about the TYPO3-team-core mailing list