summaryrefslogtreecommitdiffstats
path: root/apps/oauth2
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-07-04 08:26:27 +0200
committerGitHub <noreply@github.com>2018-07-04 08:26:27 +0200
commitc92fe76f77eab5fa8bcff1e80bc8ee94117310a8 (patch)
tree4b46c44bb650b9c49bb8f481861d38f056040b1b /apps/oauth2
parent7025f160176ea1440290b4deea8d59eeab1ec83c (diff)
parentb24b5bd297c98f6a8d9c5d55749034e9507978a5 (diff)
downloadnextcloud-server-c92fe76f77eab5fa8bcff1e80bc8ee94117310a8.tar.gz
nextcloud-server-c92fe76f77eab5fa8bcff1e80bc8ee94117310a8.zip
Merge pull request #10065 from nextcloud/rakekniven-patch-1
Update SettingsController.php
Diffstat (limited to 'apps/oauth2')
-rw-r--r--apps/oauth2/lib/Controller/SettingsController.php2
-rw-r--r--apps/oauth2/tests/Controller/SettingsControllerTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/oauth2/lib/Controller/SettingsController.php b/apps/oauth2/lib/Controller/SettingsController.php
index 67d36b69c97..499969b93bb 100644
--- a/apps/oauth2/lib/Controller/SettingsController.php
+++ b/apps/oauth2/lib/Controller/SettingsController.php
@@ -75,7 +75,7 @@ class SettingsController extends Controller {
string $redirectUri): JSONResponse {
if (filter_var($redirectUri, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED|FILTER_FLAG_HOST_REQUIRED) === false) {
- return new JSONResponse(['message' => $this->l->t('Your redirect url needs to be a full url for example: https://yourdomain.com/path')], Http::STATUS_BAD_REQUEST);
+ return new JSONResponse(['message' => $this->l->t('Your redirect URL needs to be a full URL for example: https://yourdomain.com/path')], Http::STATUS_BAD_REQUEST);
}
$client = new Client();
diff --git a/apps/oauth2/tests/Controller/SettingsControllerTest.php b/apps/oauth2/tests/Controller/SettingsControllerTest.php
index 942aa5c481b..4e4a69c9405 100644
--- a/apps/oauth2/tests/Controller/SettingsControllerTest.php
+++ b/apps/oauth2/tests/Controller/SettingsControllerTest.php
@@ -189,6 +189,6 @@ class SettingsControllerTest extends TestCase {
$result = $this->settingsController->addClient('test', 'invalidurl');
$this->assertEquals(Http::STATUS_BAD_REQUEST, $result->getStatus());
- $this->assertSame(['message' => 'Your redirect url needs to be a full url for example: https://yourdomain.com/path'], $result->getData());
+ $this->assertSame(['message' => 'Your redirect URL needs to be a full URL for example: https://yourdomain.com/path'], $result->getData());
}
}