Skip to content

Commit

Permalink
Add safety check of string to type check
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Feb 2, 2024
1 parent 8c72a28 commit a12f06f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions microservices/download/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ function query_type(param) {
let raw = param;
let prov = undefined;

if (typeof raw !== "string") {
return false;
}

let full = raw.split("&");

for (const param of full) {
Expand Down

0 comments on commit a12f06f

Please sign in to comment.