* Check for action names that don't end with '_action' in setAction().

This commit is contained in:
hns 2008-01-29 10:03:00 +00:00
parent 1ccb272c82
commit 08145e3965

View file

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