Skip to content

Commit 856aed8

Browse files
authored
[App Service] az webapp deploy: URI encode target path parameter (#32049)
1 parent 94bf940 commit 856aed8

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
@@ -8544,7 +8544,7 @@ def _build_onedeploy_scm_url(params):
85448544
deploy_url = deploy_url + '&ignorestack=' + str(params.should_ignore_stack)
85458545

85468546
if params.target_path is not None:
8547-
deploy_url = deploy_url + '&path=' + params.target_path
8547+
deploy_url = deploy_url + '&path=' + quote(params.target_path)
85488548

85498549
return deploy_url
85508550

0 commit comments

Comments
 (0)