mirror of
https://github.com/curl/curl.git
synced 2026-07-31 11:38:06 +03:00
Merge 51c2d881ff into 7d5398f764
This commit is contained in:
commit
60ec22f4c4
2 changed files with 8 additions and 4 deletions
|
|
@ -238,8 +238,10 @@ static bool ldap_value_needs_base64(const char *attr, size_t attr_len,
|
|||
if((attr_len > 7) && curl_strequal(";binary", attr + attr_len - 7))
|
||||
return TRUE;
|
||||
|
||||
/* check for leading or trailing whitespace */
|
||||
if(val->bv_len && (ISBLANK(val->bv_val[0]) ||
|
||||
/* check for a leading ':' or '<' (not a SAFE-INIT-CHAR per RFC 2849) or
|
||||
leading or trailing whitespace */
|
||||
if(val->bv_len && ((val->bv_val[0] == ':') || (val->bv_val[0] == '<') ||
|
||||
ISBLANK(val->bv_val[0]) ||
|
||||
ISBLANK(val->bv_val[val->bv_len - 1])))
|
||||
return TRUE;
|
||||
|
||||
|
|
|
|||
|
|
@ -1206,9 +1206,11 @@ static CURLcode oldap_recv(struct Curl_easy *data, int sockindex, char *buf,
|
|||
break;
|
||||
|
||||
if(!binary) {
|
||||
/* check for leading or trailing whitespace */
|
||||
/* check for a leading ':' or '<' (not a SAFE-INIT-CHAR per RFC
|
||||
2849) or leading or trailing whitespace */
|
||||
if(bvals[i].bv_len &&
|
||||
(ISBLANK(bvals[i].bv_val[0]) ||
|
||||
((bvals[i].bv_val[0] == ':') || (bvals[i].bv_val[0] == '<') ||
|
||||
ISBLANK(bvals[i].bv_val[0]) ||
|
||||
ISBLANK(bvals[i].bv_val[bvals[i].bv_len - 1])))
|
||||
binval = TRUE;
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue