From 4a32445dc9db3e4bb368cf91911fb53adb3518e8 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 28 Mar 2017 10:51:03 +0800 Subject: [PATCH] MDL-58220 oauth2: use PARAM_RAW_TRIMMED Client ID and secret and copy/pasted from elsewhere so trim them. --- lib/classes/oauth2/issuer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/classes/oauth2/issuer.php b/lib/classes/oauth2/issuer.php index aea47205704..785d5db60f5 100644 --- a/lib/classes/oauth2/issuer.php +++ b/lib/classes/oauth2/issuer.php @@ -53,11 +53,11 @@ class issuer extends persistent { 'default' => null ), 'clientid' => array( - 'type' => PARAM_RAW, + 'type' => PARAM_RAW_TRIMMED, 'default' => '' ), 'clientsecret' => array( - 'type' => PARAM_RAW, + 'type' => PARAM_RAW_TRIMMED, 'default' => '' ), 'baseurl' => array(