Skip to content

Commit

Permalink
For the moment we are not going to sanitize header values because it'…
Browse files Browse the repository at this point in the history
…s taking a lot of problem.
  • Loading branch information
iroqueta committed Jun 21, 2023
1 parent 7f381fa commit 4efc88a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public void setHeader(String name, String value) {
}

public void setHeader(String name, String value, boolean sanitize) {
if (sanitize)
resp.setHeader(name, CommonUtil.Sanitize(value, CommonUtil.HTTP_HEADER_WHITELIST));
else
//if (sanitize)
// resp.setHeader(name, CommonUtil.Sanitize(value, CommonUtil.HTTP_HEADER_WHITELIST));
//else
resp.setHeader(name, value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public void setHeader(String name, String value) {
}

public void setHeader(String name, String value, boolean sanitize) {
if (sanitize)
resp.setHeader(name, CommonUtil.Sanitize(value, CommonUtil.HTTP_HEADER_WHITELIST));
else
//if (sanitize)
// resp.setHeader(name, CommonUtil.Sanitize(value, CommonUtil.HTTP_HEADER_WHITELIST));
//else
resp.setHeader(name, value);
}

Expand Down

0 comments on commit 4efc88a

Please sign in to comment.