diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-04-24 18:00:49 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-04-28 15:28:47 +0200 |
commit | 773e9d05546bff687c227167381ab09f40383193 (patch) | |
tree | 5f0a1c1c2d53c9c3a12eb94ba3f298a22d6c57b3 /apps/updatenotification/lib | |
parent | 3c2dd082640d2429c81639156291cb5978f60eec (diff) | |
download | nextcloud-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.php | 2 |
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(); |