Skip to content

Commit

Permalink
The url quoting function was swapping the quoting of CR and LF
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio Furano authored and simonmichal committed Jan 21, 2020
1 parent bec9739 commit 1b63189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdHttp/XrdHttpUtils.cc
Expand Up @@ -376,11 +376,11 @@ char *quote(const char *str) {
j += 3;
break;
case '\n':
strcpy(r + j, "%0C");
strcpy(r + j, "%0A");
j += 3;
break;
case '\r':
strcpy(r + j, "%0A");
strcpy(r + j, "%0C");
j += 3;
break;
default:
Expand Down

0 comments on commit 1b63189

Please sign in to comment.