mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-06 19:49:12 -04:00
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:
@@ -1,18 +1,18 @@
|
||||
<?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>
|
||||
<? if ($item->original("title") != $item->title): ?>
|
||||
<td><?= t("New Title:") ?></td>
|
||||
<td><?= p::clean($item->title) ?></td>
|
||||
<td><?= SafeString::of($item->title) ?></td>
|
||||
<? else: ?>
|
||||
<td><?= t("Title:") ?></td>
|
||||
<td><?= p::clean($item->title) ?></td>
|
||||
<td><?= SafeString::of($item->title) ?></td>
|
||||
<? endif ?>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -22,12 +22,12 @@
|
||||
<? if ($item->original("description") != $item->description): ?>
|
||||
<tr>
|
||||
<td><?= t("New Description:") ?></td>
|
||||
<td><?= p::clean($item->description) ?></td>
|
||||
<td><?= SafeString::of($item->description) ?></td>
|
||||
</tr>
|
||||
<? elseif (!empty($item->description)): ?>
|
||||
<tr>
|
||||
<td><?= t("Description:") ?></td>
|
||||
<td><?= p::clean($item->description) ?></td>
|
||||
<td><?= SafeString::of($item->description) ?></td>
|
||||
</tr>
|
||||
<? endif ?>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user