From a8fed067d74f0fce4ffd90be02eb65adf35b2ad5 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 4 Sep 2009 14:49:46 +0000 Subject: Added strip_tags() to setting titles in ElggEntity git-svn-id: https://code.elgg.org/elgg/trunk@3463 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 4d2e17b56..7e3dcb628 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -161,6 +161,11 @@ if ((array_key_exists('guid', $this->attributes)) && ($name=='guid')) return false; + // strip out tags from title + if ($name == 'title') { + $value = strip_tags($value); + } + $this->attributes[$name] = $value; } else -- cgit v1.2.3