We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f013613 commit 853e8f4Copy full SHA for 853e8f4
1 file changed
src/pacparser.c
@@ -442,11 +442,11 @@ pacparser_find_proxy(const char *url, const char *host)
442
// Hostname shouldn't have single quotes in them
443
if (strchr(host, '\'')) {
444
print_error("%s %s\n", error_prefix,
445
- "Invalid hostname: hostname can't have single quotes.");
+ "Invalid hostname: hostname can't have single quotes.");
446
return NULL;
447
}
448
449
- script = (char*) malloc(32 + strlen(url) + strlen(host));
+ script = (char*) malloc(32 + strlen(sanitized_url) + strlen(host));
450
script[0] = '\0';
451
strcat(script, "findProxyForURL('");
452
strcat(script, sanitized_url);
0 commit comments