summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-08-29 12:48:40 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-08-29 12:48:40 -0700
commitc01ac42c4604b3b129e8089e0dc683ebd418b380 (patch)
tree87c688c638733e7d8a8215bc5f4ee89d0f598c62 /modules/search
parenta10063ff68cf5988297dcad889384ab2080c3850 (diff)
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/views/search.html.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/search/views/search.html.php b/modules/search/views/search.html.php
index 6a222ef1..e5c7b4a6 100644
--- a/modules/search/views/search.html.php
+++ b/modules/search/views/search.html.php
@@ -8,10 +8,10 @@
<ul>
<li>
<label for="q"><?= t("Search the gallery") ?></label>
- <input name="q" id="q" type="text" value="<?= p::clean($q) ?>"/>
+ <input name="q" id="q" type="text" value="<?= SafeString::of($q)->for_html_attr() ?>"/>
</li>
<li>
- <input type="submit" value="<?= t("Search") ?>" />
+ <input type="submit" value="<?= t("Search")->for_html_attr() ?>" />
</li>
</ul>
</fieldset>
@@ -31,10 +31,10 @@
<a href="<?= url::site("items/$item->id") ?>">
<?= $item->thumb_img() ?>
<p>
- <?= p::purify($item->title) ?>
+ <?= SafeString::purify($item->title) ?>
</p>
<div>
- <?= nl2br(p::purify($item->description)) ?>
+ <?= nl2br(SafeString::purify($item->description)) ?>
</div>
</a>
</li>
@@ -44,7 +44,7 @@
<? else: ?>
<p>
- <?= t("No results found for <b>%term</b>", array("term" => p::clean($q))) ?>
+ <?= t("No results found for <b>%term</b>", array("term" => $q)) ?>
</p>
<? endif; ?>