summaryrefslogtreecommitdiffstats
path: root/lib/private/OCS
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/OCS')
-rw-r--r--lib/private/OCS/DiscoveryService.php6
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);
}
}