diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-29 14:06:24 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-03-29 14:06:24 +0300 |
commit | 468017b8454be3165f1ab020cda6ab9bbcb918ea (patch) | |
tree | c72161f384732e3106f6d1d3823186a858b7a860 /lib/Controller/PushController.php | |
parent | 62605403a42fed2401f58c776b4f7dd746494839 (diff) |
Fix wrong function name
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PushController.php')
-rw-r--r-- | lib/Controller/PushController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/PushController.php b/lib/Controller/PushController.php index 626b431..36aef01 100644 --- a/lib/Controller/PushController.php +++ b/lib/Controller/PushController.php @@ -96,7 +96,7 @@ class PushController extends OCSController { return new JSONResponse(['message' => 'INVALID_DEVICE_KEY'], Http::STATUS_BAD_REQUEST); } - if (!filter_input(FILTER_VALIDATE_URL, $proxyServer) || strpos($proxyServer, 'https://') !== 0 || strlen($proxyServer)> 256) { + if (!filter_var($proxyServer, FILTER_VALIDATE_URL) || strpos($proxyServer, 'https://') !== 0 || strlen($proxyServer)> 256) { return new JSONResponse(['message' => 'INVALID_PROXY_SERVER'], Http::STATUS_BAD_REQUEST); } |