diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-03-09 16:32:13 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-11 15:04:01 +0200 |
commit | 0dea31d48bbd0361cca4d67b9de05a9f9ad3a198 (patch) | |
tree | 6dd63a567aed7ff3d0fef77982ac4a9efd815c20 /lib/private/OCS | |
parent | 821e2878057343dcd6df9ce28b4885e3144ca318 (diff) | |
download | nextcloud-server-0dea31d48bbd0361cca4d67b9de05a9f9ad3a198.tar.gz nextcloud-server-0dea31d48bbd0361cca4d67b9de05a9f9ad3a198.zip |
add tests for discovery service
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/private/OCS')
-rw-r--r-- | lib/private/OCS/DiscoveryService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/OCS/DiscoveryService.php b/lib/private/OCS/DiscoveryService.php index a7945681183..5534fb24ef5 100644 --- a/lib/private/OCS/DiscoveryService.php +++ b/lib/private/OCS/DiscoveryService.php @@ -94,7 +94,7 @@ class DiscoveryService implements IDiscoveryService { * @param $service * @return array */ - private function getEndpoints($decodedServices, $service) { + protected function getEndpoints($decodedServices, $service) { $discoveredServices = []; @@ -118,8 +118,8 @@ class DiscoveryService implements IDiscoveryService { * @param string $url * @return bool */ - private function isSafeUrl($url) { - return (bool)preg_match('/^[\/\.A-Za-z0-9]+$/', $url); + protected function isSafeUrl($url) { + return (bool)preg_match('/^[\/\.\-A-Za-z0-9]+$/', $url); } } |