From 78e10cacf9fdb1994ed6daff75249bd1cefe340b Mon Sep 17 00:00:00 2001 From: bpcurse <> Date: Mon, 13 Jan 2020 12:40:03 +0100 Subject: [PATCH] Handle spaces in login IDs --- userexport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userexport.php b/userexport.php index e8d0402..61a5a99 100644 --- a/userexport.php +++ b/userexport.php @@ -112,7 +112,7 @@ */ function curl_set_options($ch, $user_id = null) { if($user_id !== null) { - $user_id = '/' . $user_id; + $user_id = '/' . rawurlencode($user_id); } curl_setopt($ch, CURLOPT_URL, TARGET_URL . '/ocs/v1.php/cloud/users' . $user_id); curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);