summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-31 12:33:10 -0700
committerBharat Mediratta <bharat@menalto.com>2009-05-31 12:33:10 -0700
commitf9a741782da848c707ac0a122c35e86061a0fbb2 (patch)
tree714902a9f57155ac5a50f1a1bcaeffbe2ee2dff8
parent897ca2806d46134aa00167c5d9d9ab34eee65e37 (diff)
Switch to using html::specialchars() for cleaning.
-rw-r--r--modules/gallery/helpers/p.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/modules/gallery/helpers/p.php b/modules/gallery/helpers/p.php
index 69032840..c3074c23 100644
--- a/modules/gallery/helpers/p.php
+++ b/modules/gallery/helpers/p.php
@@ -18,16 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class p_Core {
- static function attr($dirty_html) {
- // return $dirty_html;
- return htmlentities($dirty_html, ENT_QUOTES);
- // return str_replace('"', '&quot;', $dirty_html);
- // return str_replace('"', '&quot;', Purify::instance()->purify($dirty_html));
- }
-
function clean($dirty_html) {
- // return $dirty_html;
- return htmlentities($dirty_html, ENT_QUOTES);
- // return Purify::instance()->purify($dirty_html);
+ return html::specialchars($dirty_html);
}
}