Skip to content

Commit 2eb8754

Browse files
committed
fix: urlencode id part of path
1 parent 227607c commit 2eb8754

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/mixins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# You should have received a copy of the GNU Lesser General Public License
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

18+
import urllib.parse
1819
from types import ModuleType
1920
from typing import (
2021
Any,
@@ -391,7 +392,7 @@ def update(
391392
if id is None:
392393
path = self.path
393394
else:
394-
path = "%s/%s" % (self.path, id)
395+
path = "%s/%s" % (self.path, urllib.parse.quote_plus(str(id)))
395396

396397
self._check_missing_update_attrs(new_data)
397398
files = {}

0 commit comments

Comments
 (0)