<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/10/23 Isaac Bennetch <span dir="ltr"><<a href="mailto:bennetch@gmail.com" target="_blank">bennetch@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<br>
On 10/22/13 8:48 PM, Isaac Bennetch wrote:<br>
> In the user description field of the error reporting server, new lines<br>
> are represented as \n rather than <br> or some other HTML-friendly<br>
> means. This is easy to fix, however I'm not sure where best to fix it.<br>
><br>
> Do we convert the raw input before submission (line 58 of<br>
> libraries/error_report.lib.php or on display (line 88 of<br>
> app/View/Incidents/view.ctp)? I think it's best to do it on submission,<br>
> but wanted to double-check first.<br>
><br>
<br>
</div>For example, see <a href="http://reports.phpmyadmin.net/incidents/view/62" target="_blank">http://reports.phpmyadmin.net/incidents/view/62</a><br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br>Just a thought (I haven't looked at the code): if user's description is just a plain text it would be better to just pass it through nl2br just before displaying, after making sure that we convert all "\n" escape sequences to proper newlines before text is saved to our database.<br>
<br>-- <br></div><div>Regards,<br></div><div>Piotr Przybylski<br></div></div></div></div>