fix benchmarker, prevent path traveling via job-id

This commit is contained in:
henryruhs
2026-02-28 09:51:41 +01:00
parent e57713c3c6
commit 9159f45a5f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -926,7 +926,7 @@ def create_job_id_program() -> ArgumentParser:
program.add_argument(
'job_id',
help = translator.get('help.job_id'),
type=sanitize_job_id
type = sanitize_job_id
)
return program
+2 -2
View File
@@ -1,8 +1,8 @@
import hashlib
from typing import Sequence
from typing import Optional, Sequence
def sanitize_job_id(job_id : str) -> str:
def sanitize_job_id(job_id : str) -> Optional[str]:
__job_id__ = job_id.replace('-', '')
if __job_id__.isalnum():