MCPcopy Create free account
hub / github.com/git/git / check_url_component

Function check_url_component

credential.c:583–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583static int check_url_component(const char *url, int quiet,
584 const char *name, const char *value)
585{
586 if (!value)
587 return 0;
588 if (!strchr(value, '\n'))
589 return 0;
590
591 if (!quiet)
592 warning(_("url contains a newline in its %s component: %s"),
593 name, url);
594 return -1;
595}
596
597/*
598 * Potentially-partial URLs can, but do not have to, contain

Callers 1

credential_from_url_1Function · 0.85

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected