mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-16 18:29:40 +00:00
urlencode download suffix (#1327)
This commit is contained in:
parent
b99094adef
commit
da4e145941
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,7 @@ from email.message import EmailMessage
|
|||
from enum import StrEnum
|
||||
from pathlib import Path
|
||||
from typing import Annotated, Any, Literal, Union
|
||||
from urllib.parse import quote
|
||||
|
||||
import filetype
|
||||
import structlog
|
||||
|
@ -245,6 +246,8 @@ class BaseTaskBlock(Block):
|
|||
self.download_suffix = self.format_block_parameter_template_from_workflow_run_context(
|
||||
self.download_suffix, workflow_run_context
|
||||
)
|
||||
# encode the suffix to prevent invalid path style
|
||||
self.download_suffix = quote(string=self.download_suffix, safe="")
|
||||
|
||||
if self.navigation_goal:
|
||||
self.navigation_goal = self.format_block_parameter_template_from_workflow_run_context(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue