From 2eb87545274ba61f08d124a3680fe5580e8161d2 Mon Sep 17 00:00:00 2001 From: Stefan Profanter Date: Wed, 22 Sep 2021 16:06:07 +0200 Subject: [PATCH] fix: urlencode id part of path --- gitlab/mixins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 0c2cd949b..7da5ce983 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -15,6 +15,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . +import urllib.parse from types import ModuleType from typing import ( Any, @@ -391,7 +392,7 @@ def update( if id is None: path = self.path else: - path = "%s/%s" % (self.path, id) + path = "%s/%s" % (self.path, urllib.parse.quote_plus(str(id))) self._check_missing_update_attrs(new_data) files = {}