mirror of
https://github.com/apache/struts.git
synced 2026-08-05 22:56:59 +00:00
Replace com.opensymphony.xwork2 mentions
This commit is contained in:
@@ -99,7 +99,7 @@ import java.util.List;
|
||||
* 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 {
|
||||
|
||||
+1
-1
@@ -352,7 +352,7 @@ public class ParametersInterceptor extends MethodFilterInterceptor {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user