mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
Wendy has a sharp eye
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@437868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -123,5 +123,5 @@ public final class StrutsConstants {
|
||||
public static final String STRUTS_SERVE_STATIC_BROWSER_CACHE = "struts.serve.static.browserCache";
|
||||
|
||||
/** Allows one to disable dynamic method invocation from the URL */
|
||||
public static final String STRUTS_DISABLE_DYNAMIC_METHOD_INVOCATIOn = "struts.core.disableDynamicMethodInvocation";
|
||||
public static final String STRUTS_DISABLE_DYNAMIC_METHOD_INVOCATION = "struts.core.disableDynamicMethodInvocation";
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ public class DefaultActionMapper implements ActionMapper {
|
||||
static final String REDIRECT_PREFIX = "redirect:";
|
||||
static final String REDIRECT_ACTION_PREFIX = "redirect-action:";
|
||||
|
||||
private static boolean disableDyanmicMethodCalls = "true".equals(Settings.get(StrutsConstants.STRUTS_SERVE_STATIC_BROWSER_CACHE));
|
||||
private static boolean disableDynamicMethodCalls = "true".equals(Settings.get(StrutsConstants.STRUTS_SERVE_STATIC_BROWSER_CACHE));
|
||||
|
||||
private PrefixTrie prefixTrie = null;
|
||||
public DefaultActionMapper() {
|
||||
@@ -208,7 +208,7 @@ public class DefaultActionMapper implements ActionMapper {
|
||||
|
||||
parseNameAndNamespace(uri, mapping, config);
|
||||
|
||||
if (!disableDyanmicMethodCalls) {
|
||||
if (!disableDynamicMethodCalls) {
|
||||
handleSpecialParameters(request, mapping);
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ public class DefaultActionMapper implements ActionMapper {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!disableDyanmicMethodCalls) {
|
||||
if (!disableDynamicMethodCalls) {
|
||||
// handle "name!method" convention.
|
||||
String name = mapping.getName();
|
||||
int exclamation = name.lastIndexOf("!");
|
||||
|
||||
Reference in New Issue
Block a user