MCPcopy Index your code
hub / github.com/simstudioai/sim / validateImageUrl

Function validateImageUrl

apps/sim/lib/core/security/input-validation.ts:782–787  ·  view source on GitHub ↗
(
  url: string | null | undefined,
  paramName = 'imageUrl'
)

Source from the content-addressed store, hash-verified

780 * Alias for validateExternalUrl for backward compatibility
781 */
782export function validateImageUrl(
783 url: string | null | undefined,
784 paramName = 'imageUrl'
785): ValidationResult {
786 return validateExternalUrl(url, paramName)
787}
788
789/**
790 * Validates a proxy URL to prevent SSRF attacks

Callers 1

Calls 1

validateExternalUrlFunction · 0.85

Tested by

no test coverage detected