mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 12:14:18 +00:00
add comment about validation in verify-field-link.ts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user