* Check for action names that don't end with '_action' in setAction().
This commit is contained in:
parent
1ccb272c82
commit
08145e3965
1 changed files with 2 additions and 1 deletions
|
@ -440,7 +440,8 @@ public class RequestTrans implements Serializable {
|
|||
* Set the request's action.
|
||||
*/
|
||||
public void setAction(String action) {
|
||||
this.action = action.substring(0, action.lastIndexOf("_action"));
|
||||
int suffix = action.lastIndexOf("_action");
|
||||
this.action = suffix > -1 ? action.substring(0, suffix) : action;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue