diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-04-07 17:48:48 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-04-07 17:48:48 -0400 |
commit | be6dcb5d0a96d3618c4d4d824bf94b0a6753fefc (patch) | |
tree | 986d8b726fc2ec7e9eb1aa696c563683a9569d33 /Zotlabs/Module/Settings/Oauth.php | |
parent | a5aff7d0c969adb78338e35a1d736ad80462b34b (diff) | |
parent | bddf8cfde4811dbdc821c1c65a2042e13f05e109 (diff) | |
download | volse-hubzilla-be6dcb5d0a96d3618c4d4d824bf94b0a6753fefc.tar.gz volse-hubzilla-be6dcb5d0a96d3618c4d4d824bf94b0a6753fefc.tar.bz2 volse-hubzilla-be6dcb5d0a96d3618c4d4d824bf94b0a6753fefc.zip |
Merge branch 'dev' into auto-save
Diffstat (limited to 'Zotlabs/Module/Settings/Oauth.php')
-rw-r--r-- | Zotlabs/Module/Settings/Oauth.php | 11 |
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; |