mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +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 = [];
|
const verified_links = [];
|
||||||
for (const field_url of fields) {
|
for (const field_url of fields) {
|
||||||
try {
|
try {
|
||||||
|
// getHtml validates the input URL, so we can safely pass in untrusted values
|
||||||
const html = await httpRequestService.getHtml(field_url.value);
|
const html = await httpRequestService.getHtml(field_url.value);
|
||||||
|
|
||||||
const doc = cheerio(html);
|
const doc = cheerio(html);
|
||||||
|
|||||||
Reference in New Issue
Block a user