Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-03-29 14:06:24 +0300
committerJoas Schilling <coding@schilljs.com>2017-03-29 14:06:24 +0300
commit468017b8454be3165f1ab020cda6ab9bbcb918ea (patch)
treec72161f384732e3106f6d1d3823186a858b7a860 /lib/Controller/PushController.php
parent62605403a42fed2401f58c776b4f7dd746494839 (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.php2
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);
}