SEC-2511: Remove double ALLOW-FROM from X-Frame-Options header.

The interface documentation for getAllowFromValue states: Gets the value for ALLOW-FROM excluding the ALLOW-FROM.
This commit is contained in:
getvictor 2014-02-09 10:34:42 -06:00 committed by Rob Winch
parent 4cdeacc277
commit 6de138c2f2
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ abstract class AbstractRequestParameterAllowFromStrategy implements AllowFromStr
log.debug("Supplied origin '"+allowFromOrigin+"'");
}
if (StringUtils.hasText(allowFromOrigin) && allowed(allowFromOrigin)) {
return "ALLOW-FROM " + allowFromOrigin;
return allowFromOrigin;
} else {
return "DENY";
}