Russell-IO / php-syslog-ng

Automatically exported from code.google.com/p/php-syslog-ng
1 stars 0 forks source link

data in < > didn't show up in msg field #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. any syslog line which have msg data enclosed in '<' and '>'
2.
3.

What is the expected output? What do you see instead?
expected: from=<email@address.com>
see: from=

What version of the product are you using? On what operating system?
2.9.9l (matches any previous version), Linux develop 2.6.24-19-server #1
SMP Wed Aug 20 23:54:28 UTC 2008 i686 GNU/Linux

Please provide any additional information below.
add htmlspecialchars function on $value.
change line 902 in regularresult.php with:
$explode_url .= " <a
href=\"".$_SERVER["PHP_SELF"]."?msg1=".urlencode(rtrim($value,":")) .
$ParamsGET."\"> ".htmlspecialchars($value)." </a> ";

Brg,
Danijel

Original issue reported on code.google.com by ddoo...@gmail.com on 16 Oct 2009 at 2:57

GoogleCodeExporter commented 9 years ago
Thanks, I'll get it fixed :-)

Original comment by cdu...@gmail.com on 13 Nov 2009 at 11:15