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.
This commit is contained in:
Andy Staudacher
2009-08-29 12:48:40 -07:00
parent a10063ff68
commit c01ac42c46
59 changed files with 159 additions and 188 deletions

View File

@@ -1,14 +1,14 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
<title><?= p::clean($subject) ?> </title>
<title><?= SafeString::of($subject) ?> </title>
</head>
<body>
<h2><?= p::clean($subject) ?></h2>
<h2><?= SafeString::of($subject) ?></h2>
<table>
<tr>
<td><?= t("Title:") ?></td>
<td><?= p::purify($item->title) ?></td>
<td><?= SafeString::purify($item->title) ?></td>
</tr>
<tr>
<td><?= t("Url:") ?></td>
@@ -21,7 +21,7 @@
<? if ($item->description): ?>
<tr>
<td><?= t("Description:") ?></td>
<td><?= nl2br(p::purify($item->description)) ?></td>
<td><?= nl2br(SafeString::purify($item->description)) ?></td>
</tr>
<? endif ?>
</table>