mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Fix quote issue in debug images reporting
This commit is contained in:
parent
333c46e9c9
commit
80b841e4a4
@ -206,7 +206,8 @@ class UploadEvent(MetricsEventAdapter):
|
|||||||
def _replace_slash(part):
|
def _replace_slash(part):
|
||||||
# replace the three quote symbols we cannot have,
|
# replace the three quote symbols we cannot have,
|
||||||
# notice % will be converted to %25 when the link is quoted, so we should not use it
|
# notice % will be converted to %25 when the link is quoted, so we should not use it
|
||||||
return part.replace('\\', '/').strip('/').replace('/', '.slash.').replace('?', '0x3F').replace('#', '0x23')
|
return part.replace('\\', '/').strip('/').replace('/', '.slash.').replace('?', '0x3F').\
|
||||||
|
replace('#', '0x23').replace('"', '0x22')
|
||||||
|
|
||||||
def __init__(self, metric, variant, image_data, local_image_path=None, iter=0, upload_uri=None,
|
def __init__(self, metric, variant, image_data, local_image_path=None, iter=0, upload_uri=None,
|
||||||
file_history_size=None, delete_after_upload=False, **kwargs):
|
file_history_size=None, delete_after_upload=False, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user