| 581 | } |
| 582 | |
| 583 | static 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 |
no test coverage detected