mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Allows pass Locale as array of parameters
This commit is contained in:
@@ -272,7 +272,7 @@ public class I18nInterceptor extends AbstractInterceptor {
|
||||
protected Object findLocaleParameter(Map<String, Object> params, String parameterName) {
|
||||
Object requestedLocale = params.remove(parameterName);
|
||||
if (requestedLocale != null && requestedLocale.getClass().isArray()
|
||||
&& ((Object[]) requestedLocale).length == 1) {
|
||||
&& ((Object[]) requestedLocale).length > 0) {
|
||||
requestedLocale = ((Object[]) requestedLocale)[0];
|
||||
|
||||
if (LOG.isDebugEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user