Skip to content

Commit

Permalink
Replace com.opensymphony.xwork2 mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalk committed Nov 2, 2024
1 parent a43f8a5 commit ecad4a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
* package com.example;
*
* import java.io.File;
* import com.opensymphony.xwork2.ActionSupport;
* import org.apache.struts2.ActionSupport;
* import org.apache.struts2.action.UploadedFilesAware;
*
* public UploadAction extends ActionSupport implements UploadedFilesAware {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ protected boolean isParameterAnnotatedAndAllowlist(String name, Object action) {

if (action instanceof ModelDriven<?> && !ActionContext.getContext().getValueStack().peek().equals(action)) {
LOG.debug("Model driven Action detected, exempting from @StrutsParameter annotation requirement and OGNL allowlisting model type");
// (Exempted by annotation on com.opensymphony.xwork2.ModelDriven#getModel)
// (Exempted by annotation on org.apache.struts2.ModelDriven#getModel)
return hasValidAnnotatedMember("model", action, paramDepth + 1);
}

Expand Down

0 comments on commit ecad4a5

Please sign in to comment.