From 77b3c1afa673a17b3cb8a3b4689ee8d49e848c4f Mon Sep 17 00:00:00 2001 From: Kenneth Kehl Date: Wed, 25 Jun 2025 08:44:39 -0700 Subject: [PATCH] Update app/job/rest.py Co-authored-by: ccostino --- app/job/rest.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/job/rest.py b/app/job/rest.py index 938c19450..3e06aeb53 100644 --- a/app/job/rest.py +++ b/app/job/rest.py @@ -58,11 +58,12 @@ def is_valid_id(id): return bool(re.match(r"^[a-zA-Z0-9_-]{1,50}$", id)) -def check_suspicious_id(id): - if not is_valid_id(id): - abort(403) - if is_suspicious_input(id): - abort(403) +def check_suspicious_id(*args): + for id in args: + if not is_valid_id(id): + abort(403) + if is_suspicious_input(id): + abort(403) @job_blueprint.route("/", methods=["GET"])