Skip to content

Commit 0386f58

Browse files
committed
URI encode target path param
1 parent 66ceec4 commit 0386f58

File tree

1 file changed

+2
-2
lines changed
  • src/azure-cli/azure/cli/command_modules/appservice

1 file changed

+2
-2
lines changed

src/azure-cli/azure/cli/command_modules/appservice/custom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import re
1010
from xml.etree import ElementTree
1111

12-
from urllib.parse import urlparse
12+
from urllib.parse import quote, urlparse
1313
from urllib.request import urlopen
1414

1515
from binascii import hexlify
@@ -8421,7 +8421,7 @@ def _build_onedeploy_scm_url(params):
84218421
deploy_url = deploy_url + '&ignorestack=' + str(params.should_ignore_stack)
84228422

84238423
if params.target_path is not None:
8424-
deploy_url = deploy_url + '&path=' + params.target_path
8424+
deploy_url = deploy_url + '&path=' + quote(params.target_path)
84258425

84268426
return deploy_url
84278427

0 commit comments

Comments
 (0)