Run all variables that come from user-entered data through p::clean()

This commit is contained in:
Bharat Mediratta
2009-05-31 01:02:51 -07:00
parent a049de28ac
commit 9369ccab7f
14 changed files with 61 additions and 52 deletions
@@ -5,14 +5,14 @@
</script>
<?= html::script("modules/server_add/js/server_add.js"); ?>
<div id="gServerAdd">
<h1 style="display: none;"><?= sprintf(t("Add Photos to '%s'"), $album_title) ?></h1>
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($album_title))) ?></h1>
<p id="gDescription"><?= t("Photos will be added to album:") ?></p>
<ul class="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
<li><?= $parent->title ?></li>
<li><?= p::clean($parent->title) ?></li>
<? endforeach ?>
<li class="active"><?= $album_title ?></li>
<li class="active"><?= p::clean($album_title) ?></li>
</ul>
<?= form::open($action, array("method" => "post")) ?>