mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-12-11 09:28:24 +00:00
add comment about validation in verify-field-link.ts
This commit is contained in:
parent
e8c7134123
commit
dc19b18112
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ export async function verifyFieldLinks(fields: Field[], profile_url: string, htt
|
|||
const verified_links = [];
|
||||
for (const field_url of fields) {
|
||||
try {
|
||||
// getHtml validates the input URL, so we can safely pass in untrusted values
|
||||
const html = await httpRequestService.getHtml(field_url.value);
|
||||
|
||||
const doc = cheerio(html);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue