nextcloud/tests/lib/security
Lukas Reschke dc6789fd5b Explicitly check for port
The setup uses `\OCP\IRequest::getInsecureServerHost` which in some cases can also include a port. This makes the trusted domain check fail thus.

I've decided to add this here that way because adjusting the setup would require parsing the host properly. This is not something that can be done very good in PHP. Check the following example for why `parse_url` is not our friend: https://3v4l.org/k501Z
2016-03-10 22:32:29 +01:00
..
csp Add public API to give developers the possibility to adjust the global CSP defaults 2016-01-28 18:36:46 +01:00
csrf Add new CSRF manager for unit testing purposes 2016-01-25 20:03:40 +01:00
certificate.php Use certificates that expire in 10 years 2015-08-27 22:23:08 +02:00
certificatemanager.php Allow admins to add system wide root certificates 2016-01-12 12:50:59 +01:00
credentialsmanager.php fix test 2016-01-18 12:08:58 +01:00
crypto.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
hasher.php Move the helpful method to the TestCase class 2015-06-03 12:33:29 +02:00
securerandom.php getMediumStrengthGenerator is deprecated and does not do anything anymore 2016-01-11 20:06:30 +01:00
trusteddomainhelper.php Explicitly check for port 2016-03-10 22:32:29 +01:00