summaryrefslogtreecommitdiffstats
path: root/apps/oauth2
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2018-09-13 09:31:41 +0200
committerGitHub <noreply@github.com>2018-09-13 09:31:41 +0200
commit480783a63061d3d0ea4e00295885422888df2a5c (patch)
treee0fa4fdf2494e4849b81a0d8356925be3e6c3eb8 /apps/oauth2
parenta1c969a17056f14fd165642f6c19cad160e32212 (diff)
parent8f9fa9ee13bcbf134901d35ce94945386d5f4647 (diff)
downloadnextcloud-server-480783a63061d3d0ea4e00295885422888df2a5c.tar.gz
nextcloud-server-480783a63061d3d0ea4e00295885422888df2a5c.zip
Merge pull request #11042 from nextcloud/bugfix/10894/php73-filter_var-deprecation
Remove filter_var flags due to PHP 7.3 deprecation, fixes #10894
Diffstat (limited to 'apps/oauth2')
-rw-r--r--apps/oauth2/lib/Controller/SettingsController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/oauth2/lib/Controller/SettingsController.php b/apps/oauth2/lib/Controller/SettingsController.php
index 499969b93bb..ecf3179e1bc 100644
--- a/apps/oauth2/lib/Controller/SettingsController.php
+++ b/apps/oauth2/lib/Controller/SettingsController.php
@@ -74,7 +74,7 @@ class SettingsController extends Controller {
public function addClient(string $name,
string $redirectUri): JSONResponse {
- if (filter_var($redirectUri, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED|FILTER_FLAG_HOST_REQUIRED) === false) {
+ if (filter_var($redirectUri, FILTER_VALIDATE_URL) === 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);
}