Skip to content

Commit

Permalink
Handle spaces in login IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
bpcurse committed Jan 13, 2020
1 parent 0450c34 commit 78e10ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userexport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 78e10ca

Please sign in to comment.