aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-04-24 18:00:49 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-04-28 15:28:47 +0200
commit773e9d05546bff687c227167381ab09f40383193 (patch)
tree5f0a1c1c2d53c9c3a12eb94ba3f298a22d6c57b3 /apps/updatenotification/lib
parent3c2dd082640d2429c81639156291cb5978f60eec (diff)
downloadnextcloud-server-773e9d05546bff687c227167381ab09f40383193.tar.gz
nextcloud-server-773e9d05546bff687c227167381ab09f40383193.zip
Add tests for update notification controller for non-default updater server URL
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/updatenotification/lib')
-rw-r--r--apps/updatenotification/lib/Settings/Admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/updatenotification/lib/Settings/Admin.php b/apps/updatenotification/lib/Settings/Admin.php
index f623e69e02e..43ec4dcb99e 100644
--- a/apps/updatenotification/lib/Settings/Admin.php
+++ b/apps/updatenotification/lib/Settings/Admin.php
@@ -95,7 +95,7 @@ class Admin implements ISettings {
$defaultCustomerUpdateServerURLPrefix = 'https://updates.nextcloud.com/customers/';
$isDefaultUpdateServerURL = $updateServerURL === $defaultUpdateServerURL
- || $updateServerURL === substr($updateServerURL, 0, strlen($defaultCustomerUpdateServerURLPrefix));
+ || strpos($updateServerURL, $defaultCustomerUpdateServerURLPrefix) === 0;
$hasValidSubscription = $this->subscriptionRegistry->delegateHasValidSubscription();