profile.fields.forEach { field ->
field.value = TextFilter.filter(freenetRequest.httpRequest.getHeader("Host"), freenetRequest.httpRequest.getPartAsStringFailsafe("field-${field.id}", 400).trim())
}
+ currentSone.profile = profile
webInterface.core.touchConfiguration()
throw RedirectException("editProfile.html")
} else if (freenetRequest.httpRequest.getPartAsStringFailsafe("add-field", 4) == "true") {
addHttpRequestPart("save-profile", "true")
addHttpRequestPart(fieldName, newValue.toString())
verifyRedirect("editProfile.html") {
+ verify(currentSone).profile = profile
verify(core).touchConfiguration()
assertThat(fieldAccessor(), equalTo(expectedValue))
}