aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Settings/Oauth.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-05 21:01:36 -0700
committerzotlabs <mike@macgirvin.com>2018-04-05 21:01:36 -0700
commit4a45c35c4e0e27b737d80a6f151b0b50aaef3d1e (patch)
tree1ddd74525c12c76ab13c5d8dae12872a7a74ed56 /Zotlabs/Module/Settings/Oauth.php
parentf4c94ab121167ac34e550939f032e9982d69307b (diff)
downloadvolse-hubzilla-4a45c35c4e0e27b737d80a6f151b0b50aaef3d1e.tar.gz
volse-hubzilla-4a45c35c4e0e27b737d80a6f151b0b50aaef3d1e.tar.bz2
volse-hubzilla-4a45c35c4e0e27b737d80a6f151b0b50aaef3d1e.zip
oauth2 client settings page
Diffstat (limited to 'Zotlabs/Module/Settings/Oauth.php')
-rw-r--r--Zotlabs/Module/Settings/Oauth.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/Zotlabs/Module/Settings/Oauth.php b/Zotlabs/Module/Settings/Oauth.php
index c612c7667..d6576c6de 100644
--- a/Zotlabs/Module/Settings/Oauth.php
+++ b/Zotlabs/Module/Settings/Oauth.php
@@ -23,11 +23,12 @@ class Oauth {
check_form_security_token_redirectOnErr('/settings/oauth', 'settings_oauth');
- $name = ((x($_POST,'name')) ? $_POST['name'] : '');
- $key = ((x($_POST,'key')) ? $_POST['key'] : '');
- $secret = ((x($_POST,'secret')) ? $_POST['secret'] : '');
- $redirect = ((x($_POST,'redirect')) ? $_POST['redirect'] : '');
- $icon = ((x($_POST,'icon')) ? $_POST['icon'] : '');
+ $name = ((x($_POST,'name')) ? escape_tags($_POST['name']) : '');
+ $key = ((x($_POST,'key')) ? escape_tags($_POST['key']) : '');
+ $secret = ((x($_POST,'secret')) ? escape_tags($_POST['secret']) : '');
+ $redirect = ((x($_POST,'redirect')) ? escape_tags($_POST['redirect']) : '');
+ $icon = ((x($_POST,'icon')) ? escape_tags($_POST['icon']) : '');
+ $oauth2 = ((x($_POST,'oauth2')) ? intval($_POST['oauth2']) : 0);
$ok = true;
if($name == '') {
$ok = false;