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);