diff options
author | John L. Villalovos <john@sodarock.com> | 2022-01-08 16:10:27 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-01-08 16:13:59 -0800 |
commit | 3d49e5e6a2bf1c9a883497acb73d7ce7115b804d (patch) | |
tree | d16d4dcdec97ea3afb09ef7403d784e288ede49f /gitlab/v4/cli.py | |
parent | 0dba899c20dda3a9789992a1186cfd718e5b588f (diff) | |
download | gitlab-3d49e5e6a2bf1c9a883497acb73d7ce7115b804d.tar.gz |
fix: remove custom URL encoding
We were using `str.replace()` calls to take care of URL encoding
issues.
Switch them to use our `utils._url_encode()` function which itself uses
`urllib.parse.quote()`
Closes: #1356
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 5b276ae..a76b133 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -75,7 +75,7 @@ class GitlabCLI(object): if key not in self.args: continue - self.parent_args[key] = gitlab.utils.clean_str_id(self.args[key]) + self.parent_args[key] = gitlab.utils._url_encode(self.args[key]) # If we don't delete it then it will be added to the URL as a query-string del self.args[key] |