aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-04 14:49:46 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-04 14:49:46 +0000
commita8fed067d74f0fce4ffd90be02eb65adf35b2ad5 (patch)
tree8b7db58396907d7d39e0b873d13f085a17c18089 /engine/lib/entities.php
parentc9ada1c0365a31d1340f603df5b4b8bd933dad14 (diff)
downloadelgg-a8fed067d74f0fce4ffd90be02eb65adf35b2ad5.tar.gz
elgg-a8fed067d74f0fce4ffd90be02eb65adf35b2ad5.tar.bz2
Added strip_tags() to setting titles in ElggEntity
git-svn-id: https://code.elgg.org/elgg/trunk@3463 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php5
1 files changed, 5 insertions, 0 deletions
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