Skip to content

Commit

Permalink
Fix urllib.parse import in CommonServerPython (#27252)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkatzir authored and ostolero committed Jun 14, 2023
1 parent 2c21d8b commit 9355872
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Packs/Base/ReleaseNotes/1_32_9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Scripts

##### CommonServerPython

- Fixed an issue where importing urllib.parse failed.
3 changes: 2 additions & 1 deletion Packs/Base/Scripts/CommonServerPython/CommonServerPython.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,8 @@ def add_replace_strs(self, *args):
js = js[:-1]
to_add.append(js)
if IS_PY3:
to_add.append(urllib.parse.quote_plus(a)) # type: ignore[attr-defined]
from urllib import parse as urllib_parse
to_add.append(urllib_parse.quote_plus(a)) # type: ignore[attr-defined]
else:
to_add.append(urllib.quote_plus(a)) # type: ignore[attr-defined]

Expand Down
2 changes: 1 addition & 1 deletion Packs/Base/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Base",
"description": "The base pack for Cortex XSOAR.",
"support": "xsoar",
"currentVersion": "1.32.8",
"currentVersion": "1.32.9",
"author": "Cortex XSOAR",
"serverMinVersion": "6.0.0",
"url": "https://www.paloaltonetworks.com/cortex",
Expand Down

0 comments on commit 9355872

Please sign in to comment.