[DS-1051] authentication-ip.cfg (update to array index keys)

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6792 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Stuart Lewis
2011-10-10 20:31:48 +00:00
parent c1a014dbda
commit 8409876fdc

View File

@@ -87,9 +87,9 @@ public class IPAuthentication implements AuthenticationMethod
{
String[] nameParts = propName.split("\\.");
if (nameParts.length == 3)
if (nameParts.length == 2)
{
addMatchers(nameParts[2], ConfigurationManager.getProperty("authentication-ip", propName));
addMatchers(nameParts[1], ConfigurationManager.getProperty("authentication-ip", propName));
}
else
{