bug 932: added escaping with htmlspecialchars function and encoding UTF-8 for subject
This commit is contained in:
parent
8a5059809e
commit
51d8dffac8
2 changed files with 16 additions and 16 deletions
|
@ -26,7 +26,7 @@ else {
|
||||||
print " <tr>\n";
|
print " <tr>\n";
|
||||||
print " <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";
|
print " <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";
|
||||||
print " <td>" . $header->toaddress . "</td>";
|
print " <td>" . $header->toaddress . "</td>";
|
||||||
print " <td>" . $header->subject . "</td>";
|
print " <td>" . htmlspecialchars(quoted_printable_decode($header->subject), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . "</td>";
|
||||||
print " <td>" . $header->date . "</td>";
|
print " <td>" . $header->date . "</td>";
|
||||||
print " <td>" . $header->Size . "</td>";
|
print " <td>" . $header->Size . "</td>";
|
||||||
print " <td><a class=\"delete\" href=\"" . $header->deletelink . "\"><img src=\"/img/delete_icon.jpg\"></a></td>";
|
print " <td><a class=\"delete\" href=\"" . $header->deletelink . "\"><img src=\"/img/delete_icon.jpg\"></a></td>";
|
||||||
|
|
|
@ -26,7 +26,7 @@ else {
|
||||||
print " <tr>\n";
|
print " <tr>\n";
|
||||||
print " <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";
|
print " <td><a href=\"" . $header->detailslink . "\">" . $header->fromaddress . "</a></td>";
|
||||||
print " <td>" . $header->toaddress . "</td>";
|
print " <td>" . $header->toaddress . "</td>";
|
||||||
print " <td>" . $header->subject . "</td>";
|
print " <td>" . htmlspecialchars(quoted_printable_decode($header->subject), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . "</td>";
|
||||||
print " <td>" . $header->date . "</td>";
|
print " <td>" . $header->date . "</td>";
|
||||||
print " <td>" . $header->Size . "</td>";
|
print " <td>" . $header->Size . "</td>";
|
||||||
print " <td><a class=\"delete\" href=\"" . $header->deletelink . "\"><img src=\"/img/delete_icon.jpg\"></a></td>";
|
print " <td><a class=\"delete\" href=\"" . $header->deletelink . "\"><img src=\"/img/delete_icon.jpg\"></a></td>";
|
||||||
|
|
Loading…
Reference in a new issue