Parse changed property names.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 20:50:02 +0000 (21:50 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 20:50:02 +0000 (21:50 +0100)
src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java

index 7127e8f..68f9e5f 100644 (file)
@@ -265,11 +265,11 @@ public class WebOfTrustConnector implements ConnectorListener {
                Map<String, String> properties = new HashMap<String, String>();
                int propertiesCounter = -1;
                while (true) {
-                       String propertyName = fields.get(prefix + "Property" + ++propertiesCounter + "Name");
+                       String propertyName = fields.get(prefix + "PropertyName" + ++propertiesCounter);
                        if (propertyName == null) {
                                break;
                        }
-                       String propertyValue = fields.get(prefix + "Property" + propertiesCounter + "Value");
+                       String propertyValue = fields.get(prefix + "PropertyValue" + propertiesCounter);
                        properties.put(propertyName, propertyValue);
                }
                return properties;