Skip to content

Commit 9ce788f

Browse files
committed
fix: urlencode id part of path
1 parent 227607c commit 9ce788f

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
@@ -35,6 +35,7 @@
3535
from gitlab import exceptions as exc
3636
from gitlab import types as g_types
3737
from gitlab import utils
38+
import urllib.parse
3839

3940
__all__ = [
4041
"GetMixin",
@@ -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(id))
395396

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy