* Move req.action cutting to RequestTrans.setAction() and make sure dot characters
are replaced with underscores in the action variable we use for method invocation.
This commit is contained in:
parent
be96b27a88
commit
f4eb8a9735
2 changed files with 4 additions and 2 deletions
|
@ -250,7 +250,7 @@ public class RequestTrans implements Serializable {
|
|||
* Set the request's action.
|
||||
*/
|
||||
public void setAction(String action) {
|
||||
this.action = action;
|
||||
this.action = action.substring(0, action.lastIndexOf("_action"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -329,7 +329,9 @@ public final class RequestEvaluator implements Runnable {
|
|||
// beginning of execution section
|
||||
|
||||
// set the req.action property, cutting off the _action suffix
|
||||
req.setAction(action.substring(0, action.lastIndexOf("_action")));
|
||||
req.setAction(action);
|
||||
// make sure we have a valid function name by replacing dots with underscores
|
||||
action = action.replace('.', '_');
|
||||
|
||||
// reset skin recursion detection counter
|
||||
skinDepth = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue