title: log forging fortify fix
body: <p>I am using Fortify SCA to find the security issues in my application (as a university homework). I have encountered some 'Log Forging' issues which I am not able to get rid off.</p>
  
  <p>Basically, I log some values that come as user input from a web interface:</p>
  
  <pre><code>logger.warn("current id not valid - " + bean.getRecordId()));
  </code></pre>
  
  <p>and Fortify reports this as a log forging issue, because the <em>getRecordId()</em> returns an user input.</p>
  
  <p>I have followed this <a href="http://www.jtmelton.com/2010/09/21/preventing-log-forging-in-java/" rel="noreferrer">article</a>, and I am replacing the 'new line' with space, but the issue is still reported</p>
  
  <pre><code>logger.warn("current id not valid - " + Util.replaceNewLine(bean.getRecordId()));
  </code></pre>
  
  <p>Can anyone suggest a way to fix this issue?</p>