Files
gallery3/modules/notification/views/item_added.html.php
Tim Almdal d6648c0aff Fix for ticket #477. Use nl2br method when rendering comment::text and
item::description.  In addition add p::clean or p::purify to places that
xss cleaning had missed (i.e. rss feeds)
2009-07-04 08:17:12 -07:00

30 lines
714 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
<title><?= p::clean($subject) ?> </title>
</head>
<body>
<h2><?= p::clean($subject) ?></h2>
<table>
<tr>
<td><?= t("Title:") ?></td>
<td><?= p::purifys($item->title) ?></td>
</tr>
<tr>
<td><?= t("Url:") ?></td>
<td>
<a href="<?= $item->url(array(), true) ?>">
<?= $item->url(array(), true) ?>
</a>
</td>
</tr>
<? if ($item->description): ?>
<tr>
<td><?= t("Description:") ?></td>
<td><?= nl2br(p::purify($item->description)) ?></td>
</tr>
<? endif ?>
</table>
</body>
</html>