* 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:
hns 2006-01-11 14:37:09 +00:00
parent be96b27a88
commit f4eb8a9735
2 changed files with 4 additions and 2 deletions

View file

@ -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"));
}
/**

View file

@ -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;