Submitted by: wrowe
Backports: r1800919
Reviewed by: wrowe, jchampion, ylavic
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@
1800962 13f79535-47bb-0310-9956-
ffa450edef68
trunk patch: http://svn.apache.org/r1800917
+1: wrowe, jchampion (inspection), ylavic
- *) Correct string scope to prevent duplicated values for subsequent tokens.
- Submitted by: wrowe
- trunk patch: http://svn.apache.org/r1800919
- +1: wrowe, jchampion, ylavic
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
/* find value */
+ vv = 0;
if (auth_line[0] == '=') {
auth_line++;
while (apr_isspace(auth_line[0])) {
auth_line++;
}
- vv = 0;
if (auth_line[0] == '\"') { /* quoted string */
auth_line++;
while (auth_line[0] != '\"' && auth_line[0] != '\0') {
value[vv++] = *auth_line++;
}
}
- value[vv] = '\0';
}
+ value[vv] = '\0';
while (auth_line[0] != ',' && auth_line[0] != '\0') {
auth_line++;