Actions
Feature #20206
closedProvide a check that compare a given URL with the host, TYPO3 is running on!
Start date:
2009-03-18
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:
Description
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.
(issue imported from #M10724)
Files
Updated by Marcus Krause over 15 years ago
The attached patch provides additional functions:
t3lib_div::isURL($url)
checks if a given string is a URL
t3lib_befunc::isAllowedSite($url)
checks if a given URL matches the host TYPO3 is running on
Updated by Marcus Krause over 15 years ago
v1 uses string comparison for URL matching instead of parsing and rebuilding an URL.
Besides that, URL validation is done with filter_var().
Updated by Oliver Hader about 15 years ago
Committed to SVN Trunk (rev. 5867 & 5868)
Actions