Program: 52247
Project: 52247
Buggy source:
/** 
 */
public Map act(Redirector redirector,SourceResolver resolver,Map objectModel,String source,Parameters parameters) throws Exception {
  Request request=ObjectModelHelper.getRequest(objectModel);
  String page=request.getParameter("String_Node_Str");
  String address=request.getParameter("String_Node_Str");
  String agent=request.getHeader("String_Node_Str");
  String session=request.getSession().getId();
  String comments=request.getParameter("String_Node_Str");
  Context context=ContextUtil.obtainContext(objectModel);
  EPerson loggedin=context.getCurrentUser();
  String eperson=null;
  if (loggedin != null)   eperson=loggedin.getEmail();
  if (page == null || page.equals("String_Node_Str")) {
    page=request.getHeader("String_Node_Str");
  }
  if ((address == null) || address.equals("String_Node_Str") || (comments == null)|| comments.equals("String_Node_Str")) {
    Map<String,String> map=new HashMap<String,String>();
    map.put("String_Node_Str",page);
    if (address == null || address.equals("String_Node_Str"))     map.put("String_Node_Str",eperson);
 else     map.put("String_Node_Str",address);
    map.put("String_Node_Str",comments);
    return map;
  }
  Email email=ConfigurationManager.getEmail(I18nUtil.getEmailFilename(context.getCurrentLocale(),"String_Node_Str"));
  email.addRecipient(ConfigurationManager.getProperty("String_Node_Str"));
  email.addArgument(new Date());
  email.addArgument(address);
  email.addArgument(eperson);
  email.addArgument(page);
  email.addArgument(agent);
  email.addArgument(session);
  email.addArgument(comments);
  email.setReplyTo(address);
  email.send();
  return null;
}

Fixed version (ground truth):
/** 
 */
public Map act(Redirector redirector,SourceResolver resolver,Map objectModel,String source,Parameters parameters) throws Exception {
  Request request=ObjectModelHelper.getRequest(objectModel);
  String page=request.getParameter("String_Node_Str");
  String address=request.getParameter("String_Node_Str");
  String agent=request.getHeader("String_Node_Str");
  String session=request.getSession().getId();
  String comments=request.getParameter("String_Node_Str");
  String fromPage=request.getHeader("String_Node_Str");
  String host=ConfigurationManager.getProperty("String_Node_Str");
  String basicHost="String_Node_Str";
  if (host.equals("String_Node_Str") || host.equals("String_Node_Str") || host.equals(InetAddress.getLocalHost().getHostAddress()))   basicHost=host;
 else {
    int lastDot=host.lastIndexOf("String_Node_Str");
    basicHost=host.substring(host.substring(0,lastDot).lastIndexOf("String_Node_Str"));
  }
  if (fromPage == null || fromPage.indexOf(basicHost) == -1) {
    throw new AuthorizeException();
  }
  Context context=ContextUtil.obtainContext(objectModel);
  EPerson loggedin=context.getCurrentUser();
  String eperson=null;
  if (loggedin != null)   eperson=loggedin.getEmail();
  if (page == null || page.equals("String_Node_Str")) {
    page=fromPage;
  }
  if ((address == null) || address.equals("String_Node_Str") || (comments == null)|| comments.equals("String_Node_Str")) {
    Map<String,String> map=new HashMap<String,String>();
    map.put("String_Node_Str",page);
    if (address == null || address.equals("String_Node_Str"))     map.put("String_Node_Str",eperson);
 else     map.put("String_Node_Str",address);
    map.put("String_Node_Str",comments);
    return map;
  }
  Email email=ConfigurationManager.getEmail(I18nUtil.getEmailFilename(context.getCurrentLocale(),"String_Node_Str"));
  email.addRecipient(ConfigurationManager.getProperty("String_Node_Str"));
  email.addArgument(new Date());
  email.addArgument(address);
  email.addArgument(eperson);
  email.addArgument(page);
  email.addArgument(agent);
  email.addArgument(session);
  email.addArgument(comments);
  email.setReplyTo(address);
  email.send();
  return null;
}