We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a420772 commit ba9efe3Copy full SHA for ba9efe3
ide/routes.py
@@ -39,6 +39,7 @@
39
import flask
40
import traceback
41
import functools
42
+import urllib.parse
43
44
from google.cloud import ndb
45
from google.auth.transport import requests
@@ -341,7 +342,13 @@ def parseUrlPath(theRegexp, numGroups):
341
342
for i in range(numGroups):
343
value = m.group(i+1)
344
if value:
- names[i] = value
345
+ newValue = []
346
+ for char in value:
347
+ if char == '%' or char in unreserved:
348
+ newValue.append(char)
349
+ else:
350
+ newValue.append(urllib.parse.quote(char))
351
+ names[i] = ''.join(newValue)
352
except:
353
raise ParseUrlPathException('Parsing URL failed', 400)
354
0 commit comments