Sync with 2.41.3

* maint-2.41:
  Git 2.41.3
  Git 2.40.4
  credential: disallow Carriage Returns in the protocol by default
  credential: sanitize the user prompt
  credential_format(): also encode <host>[:<port>]
  t7300: work around platform-specific behaviour with long paths on MinGW
  compat/regex: fix argument order to calloc(3)
  mingw: drop bogus (and unneeded) declaration of `_pgmptr`
  ci: remove 'Upload failed tests' directories' step from linux32 jobs
This commit is contained in:
Johannes Schindelin
2024-10-30 00:39:04 +01:00
17 changed files with 137 additions and 53 deletions

View File

@@ -134,7 +134,9 @@ struct credential {
configured:1,
quit:1,
use_http_path:1,
username_from_proto:1;
username_from_proto:1,
sanitize_prompt:1,
protect_protocol:1;
char *username;
char *password;
@@ -149,6 +151,8 @@ struct credential {
.helpers = STRING_LIST_INIT_DUP, \
.password_expiry_utc = TIME_MAX, \
.wwwauth_headers = STRVEC_INIT, \
.sanitize_prompt = 1, \
.protect_protocol = 1, \
}
/* Initialize a credential structure, setting all fields to empty. */